Zilog Z8F0130 Manual de usuario Pagina 260

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 314
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 259
eZ8
CPU Core
User Manual
UM012820-0810 TM Instruction
245
Attributes
Escaped Mode Addressing
Using Escaped Mode Addressing, address modes R or IR specify a work-
ing register. If the high nibble of the source or destination address is 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 Working Register R3 contains the value 45h (01000101b) and Work-
ing Register R7 contains the value 02h (00000010b) (testing bit 1 if it is
0), the following statement sets the Z flag (indicating bit 1 in the destina
-
tion operand is 0), and clears the V and S flags:
TM R3, R7
Object Code: 72 37
Working Register R14 contains the value F3h (11110011b), Working
Register R5 contains the value
CBh, and Register CBh contains the value
88h (10001000b) (testing bits 7 and 3 if they are 0), the following state-
Mnemonic
Destination,
Source
Op
Code
(Hex) Operand 1 Operand 2 Operand 3
TM r1, r2 72 {r1, r2}
TM r1, @r2 73 {r1, r2}
TM R1, R2 74 R2 R1
TMR1, @R275R2R1—
TM R1, IM 76 R1 IM
TM @R1, IM 77 R1 IM
Vista de pagina 259
1 2 ... 255 256 257 258 259 260 261 262 263 264 265 ... 313 314

Comentarios a estos manuales

Sin comentarios