Lecture 3 - Data Transfer
Lecture 3 - Data Transfer
The way it works: the 8-bit immd is first multiplied by 2 and then the
result is rotated to the right by number of bits specified in Rotate.
• If number of bits between the first bit '1' and the last bit '1‘ of the constant are 6,
MOV can be used with that constant
• If the constant cannot be represented in this format, MOV cannot be used to load
that constant to the register.
MOV with an immediate operand
• Instead of using 12 bits for immediate value, the bit field is
divided into 4 + 8 bits.
• Rotation count is formed by doubling 4 bit value.
• Immediate value is then right-rotated by the count calculated
in previous step.