Zilog Z8F0130 Manual de usuario Pagina 253

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 314
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 252
eZ8
CPU Core
User Manual
UM012820-0810 SWAP Instruction
238
Escaped Mode Addressing
Using Escaped Mode Addressing, address modes R or IR can specify a
working register. If the destination address is prefixed by
Eh (1110b), a
working register is inferred. For example, if Working Register R12 (
Ch) is
the preferred destination operand, use
ECh as the destination operand in
the Op Code. To access registers with addresses
E0h to EFh, either set the
Working Group Pointer,
RP[7:4], to Eh or use indirect addressing.
Sample Usage
If Register BCh contains the value B3h (10110011b), the following state-
ment leaves the value 3Bh (00111011b) in Register BCh and clears the Z
and S flags:
SWAP
BCh
Object Code: F0 BC
If Working Register R5 contains the value BCh and Register BCh contains
the value
B3h (10110011b), the following statement leaves the value
3Bh (00111011b) in Register BCh and clears the Z and S flags:
SWAP @R5h
Object Code: F1 E5
Vista de pagina 252
1 2 ... 248 249 250 251 252 253 254 255 256 257 258 ... 313 314

Comentarios a estos manuales

Sin comentarios