Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
int (*something) (arguments) =0x80d09;
(*something) (arguments);
Does it call address cs:80d09h or 80d09h (physical)?
3. [linker]I've got 16bit ELF object file (gcc), and i need good linker which made 16 bit binary file. Result file have to can run in alone (it'll be OS).
You're giving to 'something' 0x80d09,so you're talking about 32bit protected mode.Even without trying that code,do you really think that with that instruction you could break the hardware protection?
If you are not talking about 32bit protected mode,do you really think that you can give 0x80d09 to a 16bit variable?Also your question is wrong because if you are in real mode cs:'(16 bit number)'h is a "physical" address,because there is not virtual memory in real mode!Maybe it could work with something like :
far int etc. etc.
but I don't know,it depends on your compiler!
Last edited by MisterIO on Wed Apr 06, 2005 11:00 pm, edited 2 times in total.