
Chapter 5
5.3.18 IOW – Move Acc to IOCR
Syntax IOW R
Encoding
0 0000
0000 rrrr
Operation
A
→
IOCR
Status Affected
None
Description
Move data from the accumulator to I/O mapped control register IOCR.
Example
Set the even bits of Port 2 as output pins. The direction control register of
Port 2 is IOCD (0x0D).
MOV A, @0xAA
IOW 0x0D
5.3.19 JBC – Bit Test (Skip if Clear)
Syntax JBC R, b
Encoding
0 110b
bbrr rrrr
Operation
If R(b)=0, skip next instruction
Status Affected
None
Description
If bit “b” of data memory R is 0, the next instruction, which is already
fetched, will be discarded.
Example
Test Bit 0 of R10
:
If Bit 0 is 0, Pin 0 of Port 2 is unchanged.
JBC 0x10, 0
BS 0x0C, 0
…
5.3.20 JBS – Bit Test (Skip if Set)
Syntax JBS R, b
Encoding
0 111b
bbrr rrrr
Operation
If R(b)=1, skip next instruction
Status Affected
None
Description
If Bit “b” of data memory R is 1, the next instruction, which is already
fetched, will be discarded.
Example
Test Bit 0 of R10
:
If Bit 0 is 1, Pin 0 of Port 2 is unchanged.
JBS 0x10, 0
BS 0x0C, 0
…
58
•
Instruction Set
EM60000Series User’s Manual