In my example guide, it says this:
Add rx, ry, rz > adds the contents of ry and rz and places it on rx
Add rx, #0xnum > adds num to rx and places it on rx. Num must be between 0x00 and 0xff
Add rx, ry , #0xnum > adds ry and 0xnum and place the result in rx. This num is between 0 and 7
rx, ry and rz are registers, and this whole thing are syntaxes for adding. In the second row, it says it can store up to 0xff. So whats the deal in the third line? If ry is, lets say 0xff, what will happen if you add 0 to 7? And why is it limited to 0 and 7?
Update:Heh, well its a guide on the internet :P Not many good tutorials out there.
But what about the limit to 0 and 7? Does that make sense?
Copyright © 2024 EBIN.TIPS - All rights reserved.
Answers & Comments
0xff + 0 = 0xff but 0xff + 7 = 6 because the register went over the 8 bit limit. If you have a carry register check that too. I might be a little wrong but that's the idea.
I'm impressed that you are learning or being taught assembly these days.