@@ -6,12 +6,14 @@ and look at the figure with the memory layout.
66
77The 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
1212We want to print an X on screen. We will try 4 different strategies
1313and see which ones work and why.
1414
15+ ** Open the file ` boot_sect_memory.asm ` **
16+
1517First, we will define the X as data, with a label:
1618``` nasm
1719the_secret:
@@ -33,7 +35,7 @@ the bytes following 1 and 2 are just random garbage.
3335If you add or remove instructions, remember to compute the new offset of the X
3436by 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
3739the 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
5153way to print data with the boot sector, which is now attempt 2. Compile the code
5254and run it, and you will see how the ` org ` command affects each previous solution.
5355
0 commit comments