below/HelloSilicon

incorrect `chapter4::printword.s` assembly program

aj-2000 opened this issue · 2 comments

Lines 21–23 are not required or were added by mistake, causing the program to output an incorrect string.
If we remove these three lines, the program works as expected.

Expected:
0x123456789ABCDEFG
Actual:
0x1234FEDC4F5D6E3A

I am very new to assembly; please let me know if I'm wrong somewhere.

fix merged.

If you look at the book page 100-101, you will find that 0x1234FEDC4F5D6E3A is the correct answer. Please remove the incorrect fix. Removing the initialization of the output string makes the program completely useless.