I have a 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
to compile it, and bochs to run.
dd if=boot.bin bs=512 of=floppy.img
bochs -q
But bochs
said that there is no bootable device
.
So, I have the following questions:
- How can I rewrite it with AT&T syntax (which construction I must use instead
times 510-($-$$) db 0)
? - What is wrong with bochs?
Thanks!
P.S. Bochs
was compiled with x86_64
support, but it doesn't work with bochs
from the official arch repo.
I can't imagine why you're trying to write AT&T syntax if you don't know AT&T syntax! I think the "times" line would be...
Bochs is probably looking for an entire 1.44M floppy image.