Zilog Z8F0130 Manual de usuario Pagina 208

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 314
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 207
eZ8
CPU Core
User Manual
UM012820-0810 OR Instruction
193
Attributes
Escaped Mode Addressing
Using Escaped Mode Addressing, address modes R or IR can specify a
working register. If the high nibble of the source or destination address is
Eh (1110b), a working register is inferred. For example, if Working Reg-
ister R12 (Ch) is the preferred destination operand, use ECh as the destina-
tion 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 Working Register R1 contains the value 38h (00111000b) and Work-
ing Register R14 contains the value 8Dh (10001101b), the following
statement leaves the value
BDh (10111101b) in Working Register R1,
sets the S flag, and clears the Z and V flags:
OR R1, R14
Object Code: 42 1E
If Working Register R4 contains the value F9h (11111001b), Working
Register R13 contains
7Bh, and Register 7Bh contains the value 6Ah
(
01101010b), the following statement leaves the value FBh
Mnemonic
Destination,
Source
Op
Code
(Hex) Operand 1 Operand 2 Operand 3
OR r1, r2 42 {r1, r2}
OR r1, @r2 43 {r1, r2}
OR R1, R2 44 R2 R1
ORR1, @R245R2R1—
OR R1, IM 46 R1 IM
OR @R1, IM 47 R1 IM
Vista de pagina 207
1 2 ... 203 204 205 206 207 208 209 210 211 212 213 ... 313 314

Comentarios a estos manuales

Sin comentarios