upd75238 Renesas Electronics Corporation., upd75238 Datasheet - Page 36
upd75238
Manufacturer Part Number
upd75238
Description
4 Bit Single-chip Microcomputer
Manufacturer
Renesas Electronics Corporation.
Datasheet
1.UPD75238.pdf
(190 pages)
- Current page: 36 of 190
- Download datasheet (2Mb)
36
(1) Carry flag (CY)
(2) Skip flags (SK2, SK1, SK0)
Instruction dedicated to
carry flag manipulation
Bit transfer instruction
Bit Boolean instruction
Interrupt handling
The carry flag is a 1-bit flag used to store overflow or underflow occurrence information when an arithmetic
operation with a carry (ADDC, SUBC) is executed.
The carry flag also has the function of a bit accumulator, and therefore can be used to store the result of
a Boolean operation performed on the CY and bit at a specified data memory bit address.
The carry flag is manipulated using special instructions, independently of the other PSW bits.
A RESET signal occurrence causes the carry flag to be undefined.
Remark
The skip flags are used to store skip status, and are automatically set or reset when the CPU executes an
instruction.
The user cannot directly manipulate these flags as operands.
mem*.bit represents the following three addressing modes:
• fmem.bit
• pmem.@L
• @H+mem.bit
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instruction (mnemonic)
SET1 CY
CLR1 CY
NOT1 CY
SKT CY
MOV1 mem*.bit CY
MOV1 CY,mem*.bit
AND1 CY,mem*.bit
OR1 CY,mem*.bit
XOR1 CY,mem*.bit
Interrupt execution
RETI
Table 3-3 Carry Flag Manipulation Instructions
Sets CY to 1.
Clears CY to 0.
Inverts the contents of CY.
Skips if CY is set to 1.
Transfers the contents of CY to a specified bit.
Transfers the contents of a specified bit to CY.
ANDs, ORs, or XORs CY with the contents of a specified bit, then
sets the result in CY.
Saves CY and all other PSW bits to stack memory in parallel.
Restores CY together with the other PSW bits from stack memory.
Carry flag operation/processing
PD75238
Related parts for upd75238
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Renesas Technology Corp [Renesas 32-Bit RISC Microcomputer Super RISC engine Family/SH7700 Series]
Manufacturer:
Renesas Electronics Corporation.
Datasheet:
Part Number:
Description:
RENESAS MCU M16C FAMILY / M16C/Tiny SERIES
Manufacturer:
Renesas Electronics Corporation.
Datasheet:
Part Number:
Description:
Renesas Starter Kit for RX210
Manufacturer:
Renesas Electronics Corporation.
Part Number:
Description:
EVALBOARD/Renesas StarterKit for RX630
Manufacturer:
Renesas Electronics Corporation.
Part Number:
Description:
EVALBOARD/Renesas Starter Kit+ for RX63N
Manufacturer:
Renesas Electronics Corporation.
Part Number:
Description:
EVALBOARD/Renesas Starter Kit
Manufacturer:
Renesas Electronics Corporation.
Part Number:
Description:
FLASH PROGRAMMER FOR RENESAS MICROCONTROLLERS
Manufacturer:
Renesas Electronics Corporation.
Part Number:
Description:
Manufacturer:
Renesas Electronics Corporation.
Datasheet:
Part Number:
Description:
Manufacturer:
Renesas Electronics Corporation.
Datasheet:
Part Number:
Description:
Manufacturer:
Renesas Electronics Corporation.
Datasheet:
Part Number:
Description:
Manufacturer:
Renesas Electronics Corporation.
Datasheet:
Part Number:
Description:
Manufacturer:
Renesas Electronics Corporation.
Datasheet:
Part Number:
Description:
Manufacturer:
Renesas Electronics Corporation.
Datasheet:
Part Number:
Description:
Manufacturer:
Renesas Electronics Corporation.
Datasheet:
Part Number:
Description:
Manufacturer:
Renesas Electronics Corporation.
Datasheet: