Slide 22 of 97
Notes:
The second step in creating the loop is to create a loop counter with the correct value. To create a loop counter and initialize it with a value, we're going to use a move K instruction, or a move a 16-bit constant into a register.
We move the constant 40 into register A2 using the .S unit.
move K takes a 16-bit value and puts it into the lower 16-bits of a register. Later we will see a similar instruction, “Move KH” which will take a 16-bit constant and put it into the upper half of the 32-bit register.