Skip to content

Commit 0522ad7

Browse files
committed
lesson 3, boot sector with memory addressing
1 parent cd53d86 commit 0522ad7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

03-bootsector-memory/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ and look at the figure with the memory layout.
66

77
The only goal of this lesson is to learn where the boot sector is stored
88

9-
I could just go ahead and tell you that the BIOS places it at `0x7C00`, but an
10-
example with wrong solutions will make things clearer.
9+
I could just bluntly tell you that the BIOS places it at `0x7C00` and
10+
get it done with, but an example with wrong solutions will make things clearer.
1111

1212
We want to print an X on screen. We will try 4 different strategies
1313
and see which ones work and why.
1414

15+
**Open the file `boot_sect_memory.asm`**
16+
1517
First, we will define the X as data, with a label:
1618
```nasm
1719
the_secret:
@@ -33,7 +35,7 @@ the bytes following 1 and 2 are just random garbage.
3335
If you add or remove instructions, remember to compute the new offset of the X
3436
by counting the bytes, and replace `0x2d` with the new one.
3537

36-
Please don't continue onto the next file unless you have 100% understood
38+
Please don't continue onto the next section unless you have 100% understood
3739
the boot sector offset and memory addressing.
3840

3941

@@ -47,7 +49,7 @@ us define a "global offset" for every memory location, with the `org` command:
4749
[org 0x7c00]
4850
```
4951

50-
Go ahead and open `boot_sect_memory_org.asm` and you will see the canonical
52+
Go ahead and **open `boot_sect_memory_org.asm`** and you will see the canonical
5153
way to print data with the boot sector, which is now attempt 2. Compile the code
5254
and run it, and you will see how the `org` command affects each previous solution.
5355

0 commit comments

Comments
 (0)