I have this boot sector:
mov ah, 0x0e ; tty mode
mov al, 'H'
int 0x10
mov al, 'e'
int 0x10
mov al, 'l'
int 0x10
int 0x10
mov al, 'o'
int 0x10
jmp $ ; jump to current address = infinite loop
; padding and magic number
times 510 - ($-$$) db 0
dw 0xaa55
I compiled it with:
nasm -f bin boot.asm -o boot.bin
And I ran it with qemu-system-x86_64 ./boot.bin
It worked fine, but when I flashed it on USB with etcher boot.bin
, it didn't boot on my computer. My architecture is x86_64.
How can I fix it?