OccupyMars2025 / Nand2Tetris

https://csdiy.wiki/en/%E4%BD%93%E7%B3%BB%E7%BB%93%E6%9E%84/N2T/
1 stars 0 forks source link

[Caution] Whenever you use "M" register in the assembly code, make sure the "A" register has the address you want #2

Open OccupyMars2025 opened 2 months ago

OccupyMars2025 commented 2 months ago

After "A" is assigned, before "M" is used, if you put instructions such as "D;JGT", then "A" may be modified before "M" is used, thus you won't read or modify the memory at your intended location !

find a bug

resolve the bug