How could you compute 4 * $8 + $8
?
Multiply $8
by four by shifting left two positions, then
add it the original $8
.
Here is the program. But, there are a few blanks. Fill in the blanks.
The block of documentation at the top of the source file shows how registers are used in the program. This is an essential part of documentation. Testing and debugging is much easier with such a register use table.
Fill in the blanks to finish the program.
Put the result in register $9
.