Download BBC Microcomputer Advanced User Guide

Transcript
SEC
Set carry flag C=1
This instruction is used to set the carry flag. This instruction
should be used to set the carry flag prior to a subtraction unless
the carry flag has been deliberately left as a 'borrow' from a
previous subtraction.
Processor Status after use
C (carry flag): set
Z (zero flag): not affected
I (interrupt disable): not affected
D (decimal mode flag): not affected
B (break command): not affected
V (overflow flag): not affected
N (negative flag): not affected
Addressing mode
Bytes used
Cycles
implied
1
2
Example: Explicit setting of the carry flag
SEC
\ C=l
89