W742E/C81A
- 46 -
Instruction set, continued
MACHINE CODE MNEMONIC FUNCTION FLAG
AFFECTED
W/C
Logic
0010 1010 0xxx xxxx ANL R, ACC
ACCโ(R) & (ACC) ZF 1/1
0010 1110 i i i i nnnn ANL WRn, #I ACCโ(WRn) & I ZF 1/1
0010 1011 0xxx xxxx ANLR R, ACC
ACC, Rโ(R) & (ACC) ZF 1/1
0010 1111 i i i i nnnn ANLR WRn, #I ACC, WRnโ(WRn) & I ZF 1/1
0011 1010 0xxx xxxx ORL R, ACC
ACCโ(R) โง (ACC) ZF 1/1
0011 1110 i i i i nnnn ORL WRn, #I ACCโ(WRn) โง I ZF 1/1
0011 1011 0xxx xxxx ORLR R, ACC
ACC, Rโ(R) โง (ACC) ZF 1/1
0011 1111 i i i i nnnn ORLR WRn, #I ACC, WRnโ(WRn) โง I ZF 1/1
0011 1000 0xxx xxxx XRL R, ACC
ACCโ(R) EX (ACC) ZF 1/1
0011 1100 i i i i nnnn XRL WRn, #I ACCโ(WRn) EX I ZF 1/1
0011 1001 0xxx xxxx XRLR R, ACC
ACC, Rโ(R) EX (ACC) ZF 1/1
0011 1101 i i i i nnnn XRLR WRn, #I ACC, WRnโ(WRn) EX I ZF 1/1
Branch
0111 0aaa aaaa aaaa JMP L PC12~PC0โ(ROMPR)ร800H+L10~L0 1/1
1000 0aaa aaaa aaaa JB0 L PC10~PC0โL10~L0; if ACC.0 = "1" 1/1
1001 0aaa aaaa aaaa JB1 L PC10~PC0โL10~L0; if ACC.1 = "1" 1/1
1010 0aaa aaaa aaaa JB2 L PC10~PC0โL10~L0; if ACC.2 = "1" 1/1
1011 0aaa aaaa aaaa JB3 L PC10~PC0โL10~L0; if ACC.3 = "1" 1/1
1110 0aaa aaaa aaaa JZ L PC10~PC0โL10~L0; if ACC = 0 1/1
1100 0aaa aaaa aaaa JNZ L PC10~PC0โL10~L0; if ACC ! = 0 1/1
1111 0aaa aaaa aaaa JC L PC10~PC0โL10~L0; if CF = "1" 1/1
1101 0aaa aaaa aaaa JNC L PC10~PC0โL10~L0; if CF ! = "1" 1/1
0100 1000 0xxx xxxx DSKZ R
ACC, Rโ(R) - 1; PC โ (PC) + 2 if ACC = 0 ZF, CF 1/1
0100 1000 1xxx xxxx DSKNZ R
ACC, Rโ(R) - 1; PC โ (PC) + 2 if ACC ! = 0 ZF, CF 1/1
1010 1000 0xxx xxxx SKB0 R
PC โ (PC) + 2 if R.0 = "1" 1/1
1010 1000 1xxx xxxx SKB1 R
PC โ (PC) + 2 if R.1 = "1" 1/1
1010 1001 0xxx xxxx SKB2 R
PC โ (PC) + 2 if R.2 = "1" 1/1
1010 1001 1xxx xxxx SKB3 R
PC โ (PC) + 2 if R.3 = "1" 1/1