From 2edf5559e2eac384338a41a7b29164a86bc66598 Mon Sep 17 00:00:00 2001 From: Erfan <41344995+flydeoo@users.noreply.github.com> Date: Mon, 8 Jan 2024 23:24:03 +0330 Subject: [PATCH] Update episode 2: write our very first tiny bootloader.md --- ...pisode 2: write our very first tiny bootloader.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/episode 2: write our very first tiny bootloader.md b/docs/episode 2: write our very first tiny bootloader.md index bb8d385..06c1474 100644 --- a/docs/episode 2: write our very first tiny bootloader.md +++ b/docs/episode 2: write our very first tiny bootloader.md @@ -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. @@ -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: