Zilog Z80380 Manuel d'utilisateur Page 208

  • 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 207
5-174
Z380
USER'S MANUAL
DC-8297-03
ZILOG
SUB
SUBTRACT FROM STACK POINTER (WORD)
SUB SP,src src = IM
Operation: if (XM) then begin
SP(31-0) SP(31-0) – src(31-0)
end
else begin
SP(15-0) SP(15-0) – src(15-0)
end
The source operand is subtracted from the SP register and the difference is stored in the SP
register. This has the effect of allocating or deallocating space on the stack. Two's
complement subtraction is performed.
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
IM: SUB SP,nn 11101101 10010010 -n(low)- -n(high) 2 I, X
Vue de la page 207
1 2 ... 203 204 205 206 207 208 209 210 211 212 213 ... 267 268

Commentaires sur ces manuels

Pas de commentaire