405
APPENDIX E Instructions
■
Addressing Mode Codes
Table E-1 Explanation of Addressing Mode Codes
Code Meaning
Ri Register using direct addressing (R0 toR15, AC, FP, SP)
Rj Register using direct addressing (R0 to R15,AC,FP,SP)
R13 Register using direct addressing (R13,AC)
Ps Register using direct addressing (Program status register)
Rs Register using direct addressing (TBR,RP,SSP,USP,MDH,MDL)
CRi Register using direct addressing (CR0 to CR15)
CRj Register using direct addressing (CR0 to CR15)
#i4 Unsigned 4-bit immediate value
(0 to 15 or -16 to -1 according to instruction types)
#i8 Unsigned 8-bit immediate value (-128 to 255)
Note: Values from -128 to -1 are handled as 128 to 255.
#i20 Unsigned 20-bit immediate value (-0X80000 to 0XFFFFF)
Note: Values from -0X7FFFF to -1 are handled as 0X7FFFF
to 0XFFFFF.
#i32 Unsigned 32-bit immediate value (-0X80000000 to 0XFFFFFFFF)
Note: Values from -0X80000000 to -1 are handled as 0X80000000
to 0XFFFFFFFF.
#s5 Signed 5-bit immediate value (-16 to 15)
#s10 Signed 10-bit immediate value (-512 to 508, multiple of 4 only)
#u4 Unsigned 4-bit immediate value (0 to 15)
#u5 Unsigned 5-bit immediate value (0 to 31)
#u8 Unsigned 8-bit immediate value (0 to 255)
#u10 Unsigned 10-bit immediate value (0 to 1020, multiple of 4 only)
@dir8 Unsigned 8-bit direct address (0 to 0XFF)
@dir9 Unsigned 9-bit direct address (0 to 0X1FE, multiple of 2 only)
@dir10 Unsigned 10-bit direct address (0 to 0X3FC, multiple of 4 only)
label9 Signed 9-bit branch address (-0X100 to 0XFC, multiple of 2 only)
label12 Signed 12-bit branch address (-0X800 to 0X7FC, multiple of 2 only)
label20 Signed 20-bit branch address (-0X80000 to 0X7FFFF)
label32 Signed 32-bit branch address (-0X80000000 to 0X7FFFFFFF)
@Ri Register using indirect addressing (R0 to R15, AC, FP, and SP)
@Rj Register using indirect addressing (R0 to R15, AC, FP, and SP)