s3c72m9 Samsung Semiconductor, Inc., s3c72m9 Datasheet - Page 38

no-image

s3c72m9

Manufacturer Part Number
s3c72m9
Description
The S3c72m5/s3c72m7/s3c72m9 Single-chip Cmos Microcontroller Has Been Designed For High Performance Using Samsung S
Manufacturer
Samsung Semiconductor, Inc.
Datasheet
ADDRESS SPACES
SKIP CONDITION FLAGS (SC2, SC1, SC0)
The skip condition flags SC2, SC1, and SC0 in the PSW indicate the current program skip conditions and are set
and reset automatically during program execution. Skip condition flags can only be addressed by 8-bit read
instructions. Direct manipulation of the SC2, SC1, and SC0 bits is not allowed.
CARRY FLAG (C)
The carry flag is used to save the result of an overflow or borrow when executing arithmetic instructions involving a
carry (ADC, SBC). The carry flag can also be used as a 1-bit accumulator for performing Boolean operations
involving bit-addressed data memory.
If an overflow or borrow condition occurs when executing arithmetic instructions with carry (ADC, SBC), the carry flag
is set to "1". Otherwise, its value is "0". When a RESET occurs, the current value of the carry flag is retained during
power-down mode, but when normal operating mode resumes, its value is undefined.
The carry flag can be directly manipulated by predefined set of 1-bit read/write instructions, independent of other bits
in the PSW. Only the ADC and SBC instructions, and the instructions listed in Table 2-7, affect the carry flag.
NOTES:
1.
2.
2-22
Direct manipulation
Bit transfer
Boolean manipulation
Interrupt routine
Return from interrupt
The operand has three bit addressing formats: mema.a, memb.@L, and @H + DA.b.
'INTn' refers to the specific interrupt being executed and is not an instruction.
Operation Type
SCF
RCF
CCF
BTST C
LDB (operand)
LDB C, (operand)
BAND C, (operand)
BOR C, (operand)
BXOR C, (operand)
INTn
IRET
Table 2-7. Valid Carry Flag Manipulation Instructions
(2)
Instructions
(1)
,C
(1)
(1)
(1)
(1)
Set carry flag to "1"
Clear carry flag to "0" (reset carry flag)
Invert carry flag value (complement carry flag)
Test carry and skip if C = "1"
Load carry flag value to the specified bit
Load contents of the specified bit to carry flag
AND the specified bit with contents of carry flag and save
the result to the carry flag
OR the specified bit with contents of carry flag and save
the result to the carry flag
XOR the specified bit with contents of carry flag and save
the result to the carry flag
Save carry flag to stack with other PSW bits
Restore carry flag from stack with other PSW bits
S3C72M5/C72M7/C72M9/P72M9 (Preliminary Spec)
Carry Flag Manipulation

Related parts for s3c72m9