
MOTOROLA
A-10
COMPARISON OF CPU16/M68HC11 CPU ASSEMBLY LANGUAGE
For More Information On This Product,
Go to: www.freescale.com
CPU16
REFERENCE MANUAL
A.4.13 PSHY
The PSHY instruction has been replaced by PSHM. PSHM stores the contents of
selected registers on the system stack. Registers are designated by setting bits in a
mask byte.
The following code can be used to stack index register Y:
PSHM Y
The CPU16 can stack up to seven registers with a single PSHM instruction.
A.4.14 PULX
The PULX instruction has been replaced by PULM. PULM restores the contents of
selected registers from the system stack. Registers are designated by setting bits in a
mask byte.
The following code can be used to restore index register X:
PULM X
The CPU16 can restore up to seven registers with a single PULM instruction. As a part
of normal execution, PULM reads an extra location in memory. The extra data is dis-
carded. A PULM from the highest available location in memory will cause an attempt
to read an unimplemented location, with unpredictable results.
A.4.15 PULY
The PULY instruction has been replaced by PULM. PULM restores the contents of
selected registers from the system stack. Registers are designated by setting bits in a
mask byte.
The following code can be used to restore index register Y:
PULM Y
The CPU16 can restore up to seven registers with a single PULM instruction. As a part
of normal execution, PULM reads an extra location in memory. The extra data is dis-
carded. A PULM from the highest available location in memory will cause an attempt
to read an unimplemented location, with unpredictable results.
A.4.16 SEC
The SEC instruction has been replaced by ORP. ORP performs inclusive OR between
the content of the condition code register and an unsigned immediate operand, then
replaces the content of the CCR with the result. The PK extension field (CCR[3:0]) is
not affected.
The following code can be used to set the CCR C bit:
ORP #$0100
The ORP instruction can set all CCR bits, except the PK extension field, at once.
F
Freescale Semiconductor, Inc.
n
.