Created
July 9, 2021 14:15
-
-
Save alvanrahimli/4a1c979db1e4edae23eb8402f93ecdca to your computer and use it in GitHub Desktop.
Very simple boot sector program
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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