SRA_______
Das „dst“-Byte (Register oder Speicher) wird um eine Stelle nach rechts, durch das Carry Bit verschoben. Das Bit7 bleibt unverändert (Vorzeichen).
SRA dst
Operand 1: siehe unten
Operand 2: -
Flag: -
Offset: -
Index: -
Ergebniss: dst
Ergebniss Flags:
|
Bit |
Funktion |
|
|
|
|
V |
|
|
I1 |
|
|
H |
|
|
I0 |
|
|
N |
Bit7 = Bit7 (negativ) |
|
Z |
Bei Resultat = 0 -> „1“ |
|
C |
Bit0 von „dst“ -> „C“ |
Operand 1:
· Register A, (X), (Y)
· Speicherzelle
Adr. $Byte oder $Wort
· Inhalt von ($Off,Ind)
Offset ($Byte, $Wort) + Index (X,Y)
· Inhalt von ($Off,SP)
Offset ($Byte) + SP
· Inhalt von [ptr.w]
[$Byte oder $Wort]
· Inhalt von
([ptr.w],X)
[$Byte oder $Wort]