Skip to content

Instantly share code, notes, and snippets.

@alvanrahimli
Created July 9, 2021 14:15
Show Gist options
  • Select an option

  • Save alvanrahimli/4a1c979db1e4edae23eb8402f93ecdca to your computer and use it in GitHub Desktop.

Select an option

Save alvanrahimli/4a1c979db1e4edae23eb8402f93ecdca to your computer and use it in GitHub Desktop.
Very simple boot sector program
loop: ; Defining new loop
jmp loop ; Jump to loop label to make infinite loop
times 510 -( $ - $$ ) db 0 ; fill 510 bytes with 0s
dw 0xaa55 ; write magic number to last 2 bytes, so BIOS will assume
; this is bootable device
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment