hackclub / some-assembly-required

📖 An approachable introduction to Assembly.
Other
3.2k stars 140 forks source link

Syntax error #59

Closed ospilos closed 2 years ago

ospilos commented 2 years ago

„Here's another example: At memory location $0040 there is the value #$03 and at memory location $0041there is the value #$02.

STY ($0040) What do you think this does?“

Opera Snímek_2022-07-04_190207_skilldrick github io

— Nothing. The compiler will throw Syntax error.

bellesea commented 2 years ago

Hiii @ospilos Thank you so much for pointing this out. My sincerest apologies, I wrote this part of the guide while I was still learning and I was mistaken about how indirect addressing works. In this particular example, the JMP instruction should be used instead (it is the only instruction that uses this addressing mode). Will make the changes :))

If you spot any other mistakes, please let us know!

ospilos commented 2 years ago

Sure, I will. I really appreciate your effort to fix things. Keep the great work!

bellesea commented 2 years ago

Closing this issue as it was fixed with #62. Thank you for highlighting this!