English
Language : 

W741E20X Datasheet, PDF (76/84 Pages) Winbond – 4-BIT FLASH MICROCONTROLLER
Preliminary W741E20X
Instruction Set Table 2, continued
SUB R, ACC
Subtract ACC from R
Machine Code:
Machine Cycle:
Operation:
Description:
Flag Affected:
SUB WR , #I
0 0011010
0 R6 R5 R4 R3 R2 R1 R0
1
ACC ← (R) - (ACC)
The contents of the ACC are binary subtracted from the contents of the data
memory location addressed by R6 to R0 and the result is loaded into the
ACC.
CF & ZF
Subtract immediate data from WR
Machine Code:
Machine Cycle:
Operation:
Description:
Flag Affected:
SUBR R, ACC
00011110
I3 I2 I1 I0 W3 W2 W1 W0
1
ACC ← (WR) - I
The immediate data I are binary subtracted from the contents of the WR
and the result is loaded into the ACC.
CF & ZF
Subtract ACC from R
Machine Code:
Machine Cycle:
Operation:
Description:
Flag Affected:
0 0011011
0 R6 R5 R4 R3 R2 R1 R0
1
ACC, R ← (R) - (ACC)
The contents of the ACC are binary subtracted from the contents of the data
memory location addressed by R6 to R0 and the result is placed in the ACC
and the data memory.
CF & ZF
- 76 -