I am trying to write a bootloader, but none of my experiments worked until I found this question: Why does this bootloader code not work?
I simplified this program only to write char to the screen.
[ORG 0x7C00] [BITS 16] realstart: jmp start nop start: xor ax,ax mov ds,ax mov es,ax xor bx,bx mov ah, 0x0e print: mov al, "A" int 0x10 end: cli hlt times 510 - ($-$$) db 0 dw 0xAA55
It compiles fine, but objdump does not have any int 0x10 command.
If I leave the lines ( this file ), everything works fine.
Where is the catch?
(Compilation with NASM 2.08.02-1 on Cygwin Win7 SP1)
banic source share