at the moment I try to write my own bootloader with nasm, but I'm not really successful.
The problem is, I want to convert my .bin file to .iso or annother image file, so that the VM recognizes it.
But my conversion programs say that the file is broken.
My .bin file was compiled with the NASM compiler under Linux and is exactly 512 bytes large.
nasm boot.asm -f bin -o boot.bin
[BITS 16]
[ORG 0x7C00]
start:
mov SI, msg
call eachstring
jmp $
eachstring:
mov AL, [SI]
inc SI
OR AL, AL
je end
jne printchar
printchar:
mov AL, [SI];Parameter festlegen
mov AH, 0x0E;Opcode ein Zeichen auszugeben
mov BH, 0x00;Keine Seite
mov BL, 0x07
int 0x10
ret
end:
ret
msg db 'Hallo Welt', 0
TIMES 510 - ($ - $$) db 0;Füllt den restlichen Speicher
dw 0xAA55;Magic key
I hope anybody can help me. =(
Thank you in advance
Best regards