Code: Select all
bits 16
org 0x7C00
start:
mov ah, 0xE
mov al, "a"
int 0x10
stop:
jmp stop
times 510-($-$$) db 0
dw 0xAA55
Code: Select all
a
Then I tried to make some more complicated programs. For those I needed to store some data in memory. These programs did not work at all, only in QEMU. (I will not post them here becouse they are quite long). Later I found that problems were caused when I was using data from RAM (like storing and reading variables). I have made a simple modification of the program at the top of this post:
Code: Select all
bits 16
org 0x7C00
start:
mov [letter], byte "a"
mov ah, 0xE
mov al, [letter]
int 0x10
stop:
jmp stop
letter: db 0
times 510-($-$$) db 0
dw 0xAA55