UM012811-0904
eZ8 CPU Instruction Set Description
eZ8 CPU
User Manual
148
Examples
•
If the Stack Pointer (control Registers FFEH and FFFH) contains the value
70H
and
Register 70H contains the value
44H
, the statement:
POP 34H
Object Code: 50 34
loads the value
44H
into Register 34H. After the POP operation, the Stack Pointer
contains 71H. The contents of Register 70 are not affected.
•
If the Stack Pointer (control Registers FFEH and FFFH) contains the value
0080H
,
memory location 0080H contains the value
55H
, and Working Register R6 contains
the value
22H
, the statement:
POP @R6
Object Code: 51 E6
loads the value
55H
into Register 22H. After the POP operation, the Stack Pointer
contains the value
0081H
. The contents of Working Register R6 are not affected.