Qdatasheet_Logo
Integrated circuits, Transistor, Semiconductors Search and Datasheet PDF Download Site

PIC18F010T-I View Datasheet(PDF) - Microchip Technology

Part Name
Description
MFG CO.
PIC18F010T-I
Microchip
Microchip Technology Microchip
'PIC18F010T-I' PDF : 176 Pages View PDF
PIC18F010/020
POP
Pop Top of Return Stack
Syntax:
[ label ] POP
Operands:
None
Operation:
(TOS) bit bucket
Status Affected: None
Encoding:
0000 0000 0000 0110
Description:
The TOS value is pulled off the
return stack and is discarded. The
TOS value then becomes the previ-
ous value that was pushed onto the
return stack.
This instruction is provided to
enable the user to properly manage
the return stack to incorporate a
software stack.
Words:
1
Cycles:
1
Q Cycle Activity:
Q1
Decode
Q2
No
operation
Q3
Pop TOS
value
Q4
No
operation
Example:
POP
GOTO
Before Instruction
TOS
Stack (1 level down)
NEW
= 0031A2h
= 014332h
After Instruction
TOS
PC
= 014332h
= NEW
PUSH
Push Top of Return Stack
Syntax:
[ label ] PUSH
Operands:
None
Operation:
(PC+2) TOS
Status Affected: None
Encoding:
0000 0000 0000 0101
Description:
The PC+2 is pushed onto the top of
the return stack. The previous TOS
value is pushed down on the stack.
This instruction allows implement-
ing a software stack by modifying
TOS, and then push it onto the
return stack.
Words:
1
Cycles:
1
Q Cycle Activity:
Q1
Q2
Decode
Push PC+2
onto return
stack
Q3
No
operation
Q4
No
operation
Example:
PUSH
Before Instruction
TOS
PC
= 00345Ah
= 000124h
After Instruction
PC
TOS
Stack (1 level down)
= 000126h
= 000126h
= 00345Ah
DS41142A-page 124
Preliminary
2001 Microchip Technology Inc.
Share Link: GO URL

All Rights Reserved © qdatasheet.com  [ Privacy Policy ] [ Contact Us ]