Thanks Tessa, but unfortunately neither of these code samples worked for me. I'm not sure why. I am using NASM, so I had to change the syntax for 1 line in each of the samples:
4: mov al, cs:[bp+message] -> mov al, [bp+cs:message]
and
4: lodsb cs:[si] -> cs lodsb
But I don't...
Thanks Salem - the link was awesome, just what I needed.
I tried setting SS and SP but it didn't seem to help.
I DID however come up with a bit of a hack that seems to work.
It's not ideal, but at least I think I understand what's going on, which is the important bit (to me, anyway :) )
As it...
Hi
I am pretty new to assembly. I am trying to write some real mode bootsector code. I am using NASM.
I seem to be having trouble understanding how NASM or x86 real mode handle segments and offsets. Or something. In any case, something is going wrong somewhere and I don't understand why.
For...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.