5.2.9 Machine-Language Instruction Set

The following instructions are not included in the RL78 instruction set but the compiler replaces them with available instructions. If any instruction that is included in neither the following list nor the instruction set, an error will occur.

Before Instruction Operand is Replaced

After Instruction Operand is Replaced

MOV   [DE],#byte
MOV   [DE+0],#byte
MOV   [HL],#byte
MOV   [HL+0],#byte
MOV   ES:[DE],#byte
MOV   ES:[DE+0],#byte
MOV   ES:[HL],#byte
MOV   ES:[HL+0],#byte
MOVS  [HL],X
MOVS  [HL+0],X
MOVS  ES:[HL],X
MOVS  ES:[HL+0],X
CMPS  X,[HL]
CMPS  X,[HL+0]
CMPS  X,ES:[HL]
CMPS  X,ES:[HL+0]
ADDW  AX,[HL]
ADDW  AX,[HL+0]
ADDW  AX,ES:[HL]
ADDW  AX,ES:[HL+0]
SUBW  AX,[HL]
SUBW  AX,[HL+0]
SUBW  AX,ES:[HL]
SUBW  AX,ES:[HL+0]
CMPW  AX,[HL]
CMPW  AX,[HL+0]
CMPW  AX,ES:[HL]
CMPW  AX,ES:[HL+0]
INC   [HL]
INC   [HL+0]
INC   ES:[HL]
INC   ES:[HL+0]
DEC   [HL]
DEC   [HL+0]
DEC   ES:[HL]
DEC   ES:[HL+0]
INCW  [HL]
INCW  [HL+0]
INCW  ES:[HL]
INCW  ES:[HL+0]
DECW  [HL]
DECW  [HL+0]
DECW  ES:[HL]
DECW  ES:[HL+0]