gc41c501g1-so24i CORERIVER Semiconductor, gc41c501g1-so24i Datasheet - Page 41

no-image

gc41c501g1-so24i

Manufacturer Part Number
gc41c501g1-so24i
Description
4-bit Microcontrollers With Reduced 8051 Architecture
Manufacturer
CORERIVER Semiconductor
Datasheet
CJNE A, #data, rel
Appendix A : Instruction Set (6/19)
Binary Code
Description
Carry Flag
Operation
CMP_NE:
CMP_LT:
Example
Cycles
Bytes
Compares the contents of Accumulator and
data in four low-order bits of opcode, and
branches if their values are not equal.
The branch destination is computed by adding
the signed relative-displacement in the
second byte of the instruction to the PC, after
incrementing the PC to the start of the next
instruction. The contents of ACC is not affected.
The carry flag is set if the unsigned integer
value of ACC is less than the unsigned
integer value of the data; otherwise, the carry
is cleared.
(PC) ← (PC) + 2
IF (A)
IF (A) < #data THEN (C) ← 1
2
2
; Assumes ACC contains 11.
CJNE A, #8, CMP_NE
......
JC CMP_LT
......
......
1100
#data THEN (PC) ← (PC) + rel
dddd
ELSE (C) ← 0.
rrrr
; Branch is not taken.
; Branches to CMP_NE
; IF (A) = 8
; IF (A) > 8
; IF (A) < 8
rrrr
CJNE A, @DP, rel
Binary Code
Description
Carry Flag
Operation
CMP_GT:
CMP_NE:
Example
Cycles
Bytes
Compares the contents of ACC and the indirect
memory, and branches if their values are not
equal.
The branch destination is computed by adding
the signed relative-displacement in the
second byte of the instruction to the PC, after
incrementing the PC to the start of the next
instruction. The contents of both operands are
not affected by comparison.
The carry flag is set if the unsigned integer
value of ACC is less than the unsigned
integer value of M[DP]; otherwise, the carry is
cleared.
(PC) ← (PC) + 2
IF (A)
IF (A) < M[DP] THEN (C) ← 1
2
2
; Assumes M[DP] and ACC contain 15.
CJNE A, @DP, CMP_NE ; Branch is not taken.
......
JNC CMP_GT
......
......
1001
ATOM1.0 Family
M[DP] THEN (PC) ← (PC) + rel
0010
ELSE (C) ← 0.
rrrr
Preliminary
; IF (A) = M[DP]
; IF (A) < M[DP]
; IF (A) > M[DP]
; IF (A)
rrrr
M[DP]
[41]

Related parts for gc41c501g1-so24i