Zilog Z8F0130 Manual do Utilizador Página 242

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 314
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 241
eZ8
CPU Core
User Manual
UM012820-0810 SRL Instruction
227
Attributes
Escaped Mode Addressing
Using Escaped Mode Addressing, address modes R or IR specify a work-
ing register. If the destination address is prefixed by Eh (1110b), a work-
ing 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 R6 contains the value B1h (10110001b), the follow-
ing statement leaves the value 58h (01011000b) in Working Register R6,
sets the Carry flag, and clears the Z, V, and S flags:
SRL R6
Object Code: 1F C0 E6
If Register C6h contains the value DFh, and Register DFh contains the
value
F8h (11111000b), the following statement leaves the value 7Ch
(
01111100b) in Register DFh and resets the C, Z, S, and V flags:
SRL @
C6h
Object Code: 1F C1 C6
Mnemonic Destination
Op
Code
(Hex) Operand 1 Operand 2 Operand 3
SRL R1 1F C0 R1
SRL @R1 1F C1 R1
Vista de página 241
1 2 ... 237 238 239 240 241 242 243 244 245 246 247 ... 313 314

Comentários a estes Manuais

Sem comentários