Zilog Z80380 Manuel d'utilisateur Page 207

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 268
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 206
5-173
Z380
USER'S MANUAL
ZILOG
DC-8297-03
SUB
SUBTRACT (WORD)
SUB HL,src src = DA
Operation: if (XM) then begin
HL(31-0) HL(31-0) - src(31-0)
end
else begin
HL(15-0) HL(15-0) - src(15-0)
end
The source operand is subtracted from the HL register and the difference is stored in the
HL register. The contents of the source are unaffected. Two's complement subtraction is
performed. Note that the length of the operand is controlled by the Extended/Native mode
selection, which is consistent with the manipulation of an address by the instruction.
Flags: S: Unaffected
Z: Unaffected
H: Set if there is a borrow from bit 12 of the result; cleared otherwise
V: Unaffected
N: Set
C: Set if there is a borrow from the most significant bit of the result; cleared otherwise
Addressing Execute
Mode Syntax Instruction Format Time Note
DA: SUB HL,(nn) 11101101 11010110 -n(low)- -n(high) 2+r I, X
Vue de la page 206
1 2 ... 202 203 204 205 206 207 208 209 210 211 212 ... 267 268

Commentaires sur ces manuels

Pas de commentaire