MOVR

From Intellivision Wiki
(Redirected from JR)
Jump to: navigation, search
Instruction NameMove Register
MnemonicMOVR
CP1610 Clock Cycles6 or 7
InterruptibleYes
Opcode Range$0080-$00BF
Input FlagsNone
Output FlagsSign Flag, Zero Flag

The Move Register (MOVR) instruction copies the specified source register to the specified destination register and sets or clears the Sign Flag and Zero Flag according to the value that was copied. This instruction uses 6 CP1610 clock cycles in all cases except where the destination register is either R6 or R7, in which case it will use 7 clock cycles.

The "JR Rx" instruction is an alias for "MOVR Rx, R7." The "TSTR Rx" instruction is an alias for "MOVR Rx, Rx".

   0000:0000:10ss:sddd
where: sss indicates the source register such that: sss == 000 indicates register R0 sss == 001 indicates register R1 sss == 010 indicates register R2 sss == 011 indicates register R3 sss == 100 indicates register R4 sss == 101 indicates register R5 sss == 110 indicates register R6 sss == 111 indicates register R7
ddd indicates the destination register such that: ddd == 000 indicates register R0 ddd == 001 indicates register R1 ddd == 010 indicates register R2 ddd == 011 indicates register R3 ddd == 100 indicates register R4 ddd == 101 indicates register R5 ddd == 110 indicates register R6 ddd == 111 indicates register R7