Epson S1C63000 Personal Computer User Manual


 
72 EPSON S1C63000 CORE CPU MANUAL
CHAPTER 4: INSTRUCTION SET
ADD [%ir]+,imm4
Add immediate data imm4 to location [ir reg.] and increment ir reg. 2 cycles
Function: [ir] [ir] + imm4, ir ir + 1
Adds the 4-bit immediate data imm4 to the data memory addressed by the ir register (X or Y).
Then increments the ir register (X or Y). The flags change due to the operation result of the data
memory and the increment result of the ir register does not affect the flags.
Code:
Mnemonic MSB LSB
ADD [%X]+,imm4 110010001i3i2i1i01910H–191FH
ADD [%Y]+,imm4 110010011i3i2i1i01930H–193FH
Flags: EICZ
↕↕
Mode: Src: Immediate data
Dst: Register indirect
Extended addressing: Invalid
ADD %ir,%BA Add BA reg. to ir reg. 1 cycle
Function: ir ir + BA
Adds the content of the BA register to the ir register (X or Y). This instruction does not affect
the C flag regardless of the operation result.
Code:
Mnemonic MSB LSB
ADD %X,%BA 111111101000X1FD0H, (1FD1H)
ADD %Y,%BA 111111101001X1FD2H, (1FD3H)
Flags: EICZ
––
Mode: Src: Register direct
Dst: Register direct
Extended addressing: Invalid