Zilog Z80380 Instrukcja Użytkownika Strona 208

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 268
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 207
1 2 ... 203 204 205 206 207 208 209 210 211 212 213 ... 267 268

Komentarze do niniejszej Instrukcji

Brak uwag