R0=5, R3=10, R4=1, R5=1 (but we never set R5 – oops! we forgot to backup R3). We must add a first instruction to backup R3 into R5. But that uses a cycle.
0x20: MOV R3, R5 ; R5 now holds target 10 Now we need R0 to equal R5 after cycle 12.
Revised script (still 12 cycles):
R0=5, R3=10, R4=1, R5=1 (but we never set R5 – oops! we forgot to backup R3). We must add a first instruction to backup R3 into R5. But that uses a cycle.
0x20: MOV R3, R5 ; R5 now holds target 10 Now we need R0 to equal R5 after cycle 12.