ADDW_____
Das „Indexregister“(16Bit) wird zusammen mit dem Operand 2 zum „Index“ addiert und das Ergebniss im „Index“ gespeichert.
ADDW X,src
ADDW Y,src
Operand 1: X oder Y
Operand 2: siehe unten
Flag: -
Offset: Byte (optional)
Index: SP (optional)
Ergebniss: X oder Y
Ergebniss Flags:
|
Bit |
Funktion |
|
|
|
|
V |
Bei Überlauf gesetzt |
|
I1 |
|
|
H |
Bei Überlauf Bit3>Bit4 |
|
I0 |
|
|
N |
Bei Bit7 = 1 (negativ) |
|
Z |
Bei Resultat = 0 |
|
C |
Bei Überlauf Bit7> |
Operand 2:
· direkter Wert #$Wort,
· Speicherzelle
Adr. $Wort
· Inhalt von ($Byte,SP)
Offset(8Bit)+SP(16Bit)