Hopefully final comment tweaks

master
JZJisawesome 3 years ago
parent 9630862b4f
commit 4b54b9d1e4
  1. 4
      src/babystep4.S

@ -28,8 +28,8 @@ __start:#Actual __start function definition
*
* Because si handles everything, we clear ds here. But we can't write 0 to ds directly, so
* we set ax to 0 and copy it over. */
xor ax, ax#Xoring something with itself makes it 0; takes 1 byte less than "mov ax, 0"
mov ds, ax#Copies ax to ds
xor ax, ax#Xoring anything with itself makes it 0; takes 1 byte less than "mov ax, 0"
mov ds, ax#Copies ax to ds (making ds equal to 0x0000)
/* How/why "mov esi, offset greeting" is how it is
* We are addressing using the offset only, so we need to add "offset" before greeting.