Zilog Z8F0130 Manual do Utilizador Página 90

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 314
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 89
eZ8
CPU Core
User Manual
UM012820-0810 ADC Instruction
75
Example 2
If Working Register R15 contains the value 16h, the Carry flag is not set,
Working Register R10 contains the value
20h, and Register 20h contains
the value
11h, the following statement leaves the value 27h in Working
Register R15 and clears the C, Z, S, V, D, and H flags:
ADC R15, @R10
Object Code: 13 FA
Example 3
If Register 34h contains the value 2Eh, the Carry flag is set, and Register
12h contains the value 1bh, the following statement leaves the value 4Ah
in Register
34h, sets the H flag, and clears the C, Z, S, V, and D flags:
ADC
34h
,
12h
Object Code: 14 12 34
Example 4
Using Escaped Mode Addressing, if Working Register R4 contains the
value
2Eh, the Carry flag is set, and Register 12h contains the value 1bh,
the following statement leaves the value
4Ah in Working Register R4, sets
the H flag, and clears the C, Z, S, V, and D flags:
ADC E4h,
12h
Object Code: 14 12 E4
Example 5
Using Escaped Mode Addressing, if Register 4Bh contains the value 82h,
the Carry flag is set, Working Register R3 contains the value
10h, and
Register
10h contains the value 01h, the following statement leaves the
value
84h in Register 4Bh, sets the S flag, and clears the C, Z, V, D, and H
flags:
ADC
4Bh
, @R3
Object Code: 15 E3 4B
Vista de página 89
1 2 ... 85 86 87 88 89 90 91 92 93 94 95 ... 313 314

Comentários a estes Manuais

Sem comentários