Zilog Z80380 Uživatelský manuál Strana 59

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 268
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 58
5-25
Z380
USER'S MANUAL
ZILOG
DC-8297-03
ADD
ADD TO STACK POINTER (WORD)
ADD SP,srcsrc = 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 added to the SP register and the sum is stored in the SP register. This
has the effect of allocating or allocating space on the stack. Two’s complement addition is
performed.
Flags: S: Unaffected
Z: Unaffected
H: Set if there is a carry from bit 11 of the result; cleared otherwise
V: Unaffected
N: Cleared
C: Set if there is a carry from the most significant bit of the result; cleared otherwise
Addressing Execute
Mode Syntax Instruction Format Time Note
IM: ADD SP,nn 11101101 10000010 -n(low)- -n(high) 2 I, X
Zobrazit stránku 58
1 2 ... 54 55 56 57 58 59 60 61 62 63 64 ... 267 268

Komentáře k této Příručce

Žádné komentáře