I have the following code:
[org 0x7c00]
string : db "hello", 0
mov ah , 0x0e
mov al , "j"
int 0x10
jmp $
times 510-($-$$) db 0
db 0x55 , 0xaa
For some reason the character is not printed. When I define the string after the interrupt, the program works fine.
What is the matter with this?
I'm using the following commands:
nasm -fbin boot2.asm -o boot2.iso && qemu-system-x86_64 -drive format=raw,file=boot2.iso