SBC_______

Subtract with Borrow and Carry

Das „src“-Byte (im Speicher) wird zusammen mit dem Carry Flag vom Inhalt des Akku’s subtrahiert. Das Ergebniss wird im Akku gespeichert.

SBC A,src

Operand 1:         Akku

Operand 2:         siehe unten

Flag:                     -                                                                                                                                       

Offset:                 -

Index:                   -

Ergebniss:           Akku

Ergebniss Flags:

Bit

Funktion

 

 

V

Bei Überlauf gesetzt

I1

 

H

 

I0

 

N

Bei Bit7 = 1 (negativ)

Z

Bei Resultat = 0

C

Bei BORROW = 1

Operand 1:

·        Register A,(X),(Y)

·        Speicherzelle in

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]