This is a low level system issue.
I need to mix 32-bit and 16-bit code, because I'm trying to return to real mode from protected mode. As a bit of background information, my code does this right after loading GRUB, so I donβt have any annoying operating system to tell me what I can and cannot do.
Anyway, I use [BITS 32] and [BITS 16] with my build to tell nasm what types of operations it should use, but when I test my code use bochs, it looks like for some bochs the code that I wrote is not executed. Assembler seems to be sticking with extra functions 0x66and 0x67that mix bochs.
So, how do I get nasm to successfully build the code, where I mix 32-bit and 16-bit code in the same file? Is there any trick?
terry
source
share