Epson S1C63000 Personal Computer User Manual


 
S1C63000 CORE CPU MANUAL EPSON 69
CHAPTER 4: INSTRUCTION SET
ADD %r,imm4 Add immediate data imm4 to r reg. 1 cycle
Function: r r + imm4
Adds the 4-bit immediate data imm4 to the r register (A or B).
Code: Mnemonic MSB LSB
ADD %A,imm4 110010100i3i2i1i01940H–194FH
ADD %B,imm4 110010101i3i2i1i01950H–195FH
Flags: EICZ
↕↕
Mode: Src: Immediate data
Dst: Register direct
Extended addressing: Invalid
ADD %r,[%ir] Add location [ir reg.] to r reg. 1 cycle
Function: r r + [ir]
Adds the content of the data memory addressed by the ir register (X or Y) to the r register (A or
B).
Code:
Mnemonic MSB LSB
ADD %A,[%X] 11001011000001960H
ADD %A,[%Y] 11001011000101962H
ADD %B,[%X] 11001011001001964H
ADD %B,[%Y] 11001011001101966H
Flags: EICZ
↕↕
Mode: Src: Register indirect
Dst: Register direct
Extended addressing: Valid
Extended LDB %EXT,imm8
operation: ADD %r,[%X] r r + [00imm8] (00imm8 = 0000H + 00H to FFH)
LDB %EXT,imm8
ADD %r,[%Y] r r + [FFimm8] (FFimm8 = FF00H + 00H to FFH)