[Prev] [Next] [Contents] [Commodore] [New] [Search] [Home]

SBC

Substract memory from accumulator with borrow

SBC

Operation: A - M - _C → A
Note: _C = Borrow
N Z C I D V
/ / / _ _ /
(Ref: 2.2.2)
Addressing ModeAssembly Language FormOP CODENo. BytesNo. Cycles
Immediate SBC #Oper E9 2 2
Zero Page SBC Oper E5 2 3
Zero Page, X SBC Oper, X F5 2 4
Absolute SBC Oper ED 3 4
Absolute, X SBC Oper, X FD 3 4*
Absolute, Y SBC Oper, Y F9 3 4*
(Indirect, X) SBC (Oper, X) E1 2 6
(Indirect), Y SBC (Oper), Y F1 2 5*
* Add 1 when page boundary is crossed.

SEC

SEC Set carry flag

SEC

Operation: 1 → C N Z C I D V
_ _ 1 _ _ _
(Ref: 3.0.1)
Addressing ModeAssembly Language FormOP CODENo. BytesNo. Cycles
Implied SEC 38 1 2

SED

SED Set decimal mode

SED

Operation: 1 → D N Z C I D V
_ _ _ _ 1 _
(Ref: 3.3.1)
Addressing ModeAssembly Language FormOP CODENo. BytesNo. Cycles
Implied SED F8 1 2


[Prev] [Next] [Contents] [Commodore] [New] [Search] [Home]
This page has been created by Sami Rautiainen.
Read the small print. Last updated December 07, 2002.