Motorola HC12 Refrence Manual page 215

Table of Contents

Advertisement

PSHB
(SP) – $0001 ⇒ SP
Operation:
(B) ⇒ M
Description:
Stacks the content of accumulator B. The stack pointer is decremented
by one. The content of B is then stacked at the address the SP points to.
Push instructions are commonly used to save the contents of one or
more CPU registers at the start of a subroutine. Complementary pull in-
structions can be used to restore the saved CPU registers just before re-
turning from the subroutine.
Condition Codes and Boolean Formulas:
S
None affected.
Addressing Modes, Machine Code, and Execution Times:
Source Form
PSHB
CPU12
REFERENCE MANUAL
Push B onto Stack
(SP)
X
H
I
N
Z
Address Mode
INH
37
INSTRUCTION GLOSSARY
V
C
Object Code
PSHB
Cycles
Access Detail
2
Os
MOTOROLA
6-155

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cpu12

Table of Contents