Zilog Z16F2810 Manual do Utilizador Página 156

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 216
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 155
PUSH Instruction UM018809-0611
140
ZNEO
®
CPU Core
User Manual
PUSH
Definition
PUSH Value
Syntax
PUSH src
Operation
Description
The PUSH instruction decrements the Stack Pointer (R15) by 1, 2, or 4 and loads the source
value into the byte, word, or quad pointed to by the Stack Pointer.
The default data size is 32 bits. Byte (8-bit) or Word (16-bit) data size can be selected by adding
a .B or .W, suffix, respectively, to the PUSH mnemonic.
When a 32-bit value is pushed into an 8- or 16-bit stack location, the value is truncated to fit the
destination size. When an 8- or 16-bit immediate value is pushed into a larger location, it is
always sign extended.
PUSH is implemented using LD register-indirect opcodes with predecrement. See LD for more
instructions that load and store data.
Flags
Flags are not affected by this instruction.
PUSH:
SP
SP – 4
(SP)
src
PUSH.B:
SP
SP – 1
(SP)
src
PUSH.W:
SP
SP – 2
(SP)
src
Vista de página 155
1 2 ... 151 152 153 154 155 156 157 158 159 160 161 ... 215 216

Comentários a estes Manuais

Sem comentários