asm & c compile problem
Posted: Wed Jun 06, 2012 10:00 am
this is my code
is there anyone help me analyze this problem,thanks
is there anyone help me analyze this problem,thanks
The Place to Start for Operating System Developers
http://f.osdev.org/
Not without doing the hack that makes it emit 16-bit code.Love4Boobies wrote:Actually, it should be fine with GCC, if DS = ES and the code fits one segment. Isn't that what they do with GRUB?
thanksCombuster wrote:Not without doing the hack that makes it emit 16-bit code.Love4Boobies wrote:Actually, it should be fine with GCC, if DS = ES and the code fits one segment. Isn't that what they do with GRUB?
The OP is executing 32-bit opcodes in 16-bit mode and wonders why the compiler is "broken". The problem gets ever more interesting when you end up using a mingw32 (educated guess) compiler to make a DOS .COM binary in a "bootloader" folder. Add to that that the OP can't even formulate a proper question chances are likely he doesn't even understand what he's doing - in which case guessing the right fix is rather dangerous.
Code: Select all
asm(".code16gcc\n\t");
Combuster wrote:Add to that that the OP can't even formulate a proper question chances are likely he doesn't even understand what he's doing
hatling wrote:...
I agree with half of that, Berkus.berkus wrote: