gc41c501g0-sp8i CORERIVER Semiconductor, gc41c501g0-sp8i Datasheet - Page 58

no-image

gc41c501g0-sp8i

Manufacturer Part Number
gc41c501g0-sp8i
Description
4-bit Microcontrollers With Reduced 8051 Architecture With Reduced 8051 Architecture
Manufacturer
CORERIVER Semiconductor
Datasheet
NOP
POP A
Appendix A : Instruction Set (17/19)
Binary Code
Binary Code
LOOP_BGN:
Description
Description
Carry Flag
Carry Flag
Operation
Operation
Example
Example
Cycles
Cycles
Bytes
Bytes
No operation.
Just fetches the next instruction.
(PC) ← (PC) + 1
Not affected.
1
1
The contents of stack top is moved to ACC.
After that the stack pointer is decremented by
1.
(A) ← M[SP]
(SP) ← (SP) - 1
Not affected.
1
1
; Looping with variable stored in stack
MOV A, #7
PUSH A
.....
POP A
DJNZ A, LOOP_BGN ; Iteration
NOP
0000
0000
0000
0011
; Set loop count
; Store loop index in stack.
; Restore loop index
; Operations in loop
ORL A, @DP
PUSH A
Binary Code
Binary Code
Description
Description
Carry Flag
Carry Flag
Operation
Operation
Example
Example
Cycles
Cycles
Bytes
Bytes
ORL performs the bitwise logical-OR operation
between the indirect data memory and ACC.
The result is stored in Accumulator.
(A) ← (A) | M[DP]
Not affected.
1
1
; Assumes M[DP] contains 1
MOV A, #0xA ; Set ACC as 10.
ORL A, @DP
The stack pointer is incremented by 1. Then
the contents of ACC is copied to the stack.
(SP) ← (SP) + 1
M[SP] ← (A)
Not affected.
1
1
PUSH A
MOV A, #0xE
MOV P2, A
POP A
0000
0000
ATOM1.0 Family
1101
0010
; The result, 11 is stored in ACC.
; Store ACC in stack
; Restore ACC from stack
; Assign ACC for port output
; Drive Port 2
Preliminary
[58]

Related parts for gc41c501g0-sp8i