![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/2/8d/28d7bc37-c618-49b2-b7e5-c87e323504bb/28d7bc37-c618-49b2-b7e5-c87e323504bb-bg57.png)
S1C63000 CORE CPU MANUAL EPSON 81
CHAPTER 4: INSTRUCTION SET
BIT [%ir],imm4
BIT [%ir]+,imm4
Test bit of location [ir reg.] with immediate data imm4 and increment ir reg. 1 cycle
Function: [ir] ∧ imm4, ir ← ir + 1
Performs a logical AND of the 4-bit immediate data imm4 and the content of the data memory
addressed by the ir register (X or Y) to check the bits of the memory. The Z flag is changed due
to the operation result, but the content of the memory is not changed. Then increments the ir
register (X or Y). The increment result of the ir register does not affect the flags.
Code:
Mnemonic MSB LSB
BIT [%X]+,imm4 110101001i3i2i1i01A90H–1A9FH
BIT [%Y]+,imm4 110101011i3i2i1i01AB0H–1ABFH
Flags: EICZ
↓ ––↕
Mode: Src: Immediate data
Dst: Register indirect
Extended addressing: Invalid
Test bit of location [ir reg.] with immediate data imm4 1 cycle
Function: [ir] ∧ imm4
Performs a logical AND of the 4-bit immediate data imm4 and the content of the data memory
addressed by the ir register (X or Y) to check the bits of the memory. The Z flag is changed due
to the operation result, but the content of the memory is not changed.
Code:
Mnemonic MSB LSB
BIT [%X],imm4 110101000i3i2i1i01A80H–1A8FH
BIT [%Y],imm4 110101010i3i2i1i01AA0H–1AAFH
Flags: EICZ
↓ ––↕
Mode: Src: Immediate data
Dst: Register indirect
Extended addressing: Valid
Extended LDB %EXT,imm8
operation: BIT [%X],imm4 [00imm8] ∧ imm4 (00imm8 = 0000H + 00H to FFH)
LDB %EXT,imm8
BIT [%Y],imm4 [FFimm8] ∧ imm4 (FFimm8 = FF00H + 00H to FFH)