assembly - Simple bootloader and bochs -
i have simple bootloader written in at&t syntax.
[bits 16] [org 0x7c00] jmp $ times 510-($-$$) db 0 dw 0xaa55
i use yasm -f bin -o boot.bin loader.s
compile it, , bochs run.
dd if=boot.bin bs=512 of=floppy.img bochs -q
but bochs
said there no bootable device
.
so, have following questions:
- how can rewrite at&t syntax (which construction must use instead
times 510-($-$$) db 0)
? - what wrong bochs?
thanks!
p.s. bochs
compiled x86_64
support, doesn't work bochs
official arch repo.
i can't imagine why you're trying write at&t syntax if don't know at&t syntax! think "times" line be...
.org 0x7dfe .word 0xaa55
bochs looking entire 1.44m floppy image.
Comments
Post a Comment