Help with basic Assembly?

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?

Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Helpful Social

Copyright © 2024 EBIN.TIPS - All rights reserved.