English
Language : 

W741L250 Datasheet, PDF (81/86 Pages) Winbond – 4-BIT MICROCONTROLLER
W741L250
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:
00011110
I3 I2 I1 I0 W3 W2 W1 W0
Machine Cycle:
Operation:
Description:
Flag Affected:
SUBR R, ACC
Machine Code:
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
0 0011011
0 R6 R5 R4 R3 R2 R1 R0
Machine Cycle:
Operation:
Description:
Flag Affected:
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
- 81 -
Publication Release Date: March 1998
Revision A2