does anyone know a good reference about register behavior/usage in real mode
i wrote a bootloader and it seems to work fine but my c kernel acts a little bit strange and i dont know if maybe i messed it up from real mode
real mode programming
I *think* he's referring to memory addressing with the segment registers, which does change between real/pmode's.
If so, then its just the standard seg:offset model under real mode... As long as you stay real mode, they cannot change behavior.
I suspect there is probably a different problem with your code.
If so, then its just the standard seg:offset model under real mode... As long as you stay real mode, they cannot change behavior.
I suspect there is probably a different problem with your code.
Hi,
Although there can be an art to choosing the correct register for the correct thing, if you are programming in real mode in assembly, you can pretty much do what you like.
Have a look at this reference: http://www.swansontec.com/sregisters.html which I found quite interesting reading.
Cheers,
Adam
Although there can be an art to choosing the correct register for the correct thing, if you are programming in real mode in assembly, you can pretty much do what you like.
Have a look at this reference: http://www.swansontec.com/sregisters.html which I found quite interesting reading.
Cheers,
Adam
i'm not referring to something specificneon wrote:I *think* he's referring to memory addressing with the segment registers, which does change between real/pmode's.
If so, then its just the standard seg:offset model under real mode... As long as you stay real mode, they cannot change behavior.
I suspect there is probably a different problem with your code.
i wrote about 5 pages of assembly code for my bootloader and want to get a better understanding just to be sure i did it correctly.
i mean it's working but that doesn't mean there are no errors right?
thanks adamAJ wrote: Have a look at this reference: http://www.swansontec.com/sregisters.html which I found quite interesting reading.
great article
do u know a good x86 reference which explains
the purpose and how to use each command properly
i'm sometimes quite lost when i dont know which command
i need or how to use it and what it does exactly
The Intel Manuals are your friends...
If you're trying to be backwards compatible (like programming in realmode...), use this older manual for the 80386.
If you're trying to be backwards compatible (like programming in realmode...), use this older manual for the 80386.
"Sufficiently advanced stupidity is indistinguishable from malice."