Skip to content

Conversation

@EdmanCoding
Copy link
Owner

0111 1111 1111 1111 + 0000 0000 0000 0001 don't create overflow in 16-bit unsigned representation.

0111 1111 1111 1111 + 0000 0000 0000 0001 don't create overflow in 16-bit unsigned representation.
@EdmanCoding EdmanCoding added the invalid This doesn't seem right label Mar 7, 2025
@EdmanCoding EdmanCoding merged commit db47b97 into main Mar 18, 2025
EdmanCoding added a commit that referenced this pull request May 12, 2025
I guess my solution much more descriptive. And i think it's a little bit confusing for readers like me that studying chapter 5 and don't know about assembly yet to see the answers only in assembly without machine code (which fifth chapter dedicated to). Moreover, looks like there is mistake here: 
1. LD R1 #2 
2. STR R0 R1 #0 
The number of instruction changed to +1, so the xF3FF value that you want to load in R1 is now not in the x3004 like in the original code, but in the x3005 instead. Check my version to see what I'm talking about.
EdmanCoding pushed a commit that referenced this pull request Jun 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

invalid This doesn't seem right

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants