Skip to content

Commit

Permalink
Update episode 2: write our very first tiny bootloader.md
Browse files Browse the repository at this point in the history
  • Loading branch information
flydeoo authored Jan 8, 2024
1 parent 024bc9b commit 2edf555
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/episode 2: write our very first tiny bootloader.md
Original file line number Diff line number Diff line change
Expand Up @@ -446,15 +446,15 @@ jmp print_loop
exit:
mov ax, 0
times 510-($-$$)
db 0 dw 0xAA55
times 510-($-$$) db 0
dw 0xAA55
```

following code:

``` assembly
times 510-($-$$)
db 0 dw 0xAA55
times 510-($-$$) db 0
dw 0xAA55
```

adds a two-byte signature (which is 0xAA 0x55) at byte numbers 511 and 512, so bios can recognize our bootloader.
Expand Down Expand Up @@ -587,8 +587,8 @@ mov ax, 0
msg: db "Hello, world!"
times 510-($-$$)
db 0 dw 0xAA55
times 510-($-$$) db 0
dw 0xAA55
```

It's time to determine whether it's working or not:
Expand Down

0 comments on commit 2edf555

Please sign in to comment.