GNU assembler padding

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
moth

GNU assembler padding

Post by moth »

I'm converting my boot sector code over to GNU assembler for consistency, and I can't seem to find how to pad the binary to 510 bytes + signature.  Anyone know the correct padding directive and how to use it?  Thanks
moth

RE:GNU assembler padding

Post by moth »

I think I figured it out.  We'll see if it breaks when I get all the code ported:

------------------------------------------
boot_start:
     ...
boot_end:
     .space (510 - (boot_end - boot_start)),0x00
     .byte 0x55,0xAA
Post Reply