Samsung KS57C2308 Manual page 78

Single-chip cmos microcontroller
Table of Contents

Advertisement

SAM47 INSTRUCTION SET
Flexible Bit Manipulation
In addition to normal bit manipulation instructions like set and clear, the SAM47 instruction set can also perform
bit tests, bit transfers, and bit Boolean operations. Bits can also be addressed and manipulated by special bit
addressing modes. Three types of bit addressing are supported:
— mema.b
— memb.@L
— @H+DA.b
The parameters of these bit addressing modes are described in more detail in Table 5-2.
Addressing Mode
mema.b
ERB, EMB, IS1, IS0, IEx, IRQx
Ports
memb.@L
Ports and BSC
@H+DA.b
All bit-manipulatable peripheral hardware
Instructions Which Have Skip Conditions
The following instructions have a skip function when an overflow or borrow occurs:
XCHI
INCS
XCHD
DECS
LDI
ADS
LDD
SBS
If there is an overflow or borrow from the result of an increment or decrement, a skip signal is generated and a
skip is executed. However, the carry flag value is unaffected.
The instructions BTST, BTSF, and CPSE also generate a skip signal and execute a skip when they meet a skip
condition, and the carry flag value is also unaffected.
Instructions Which Affect the Carry Flag
The only instructions which do not generate a skip signal, but which do affect the carry flag are as follows:
ADC
LDB
SBC
BAND
SCF
BOR
RCF
BXOR
CCF
IRET
RRC
5-4
Table 5-2. Bit Addressing Modes and Parameters
Addressable Peripherals
C,(operand)
C,(operand)
C,(operand)
C,(operand)
KS57C2308/P2308/C2316/P2316
Address Range
FB0H–FBFH
FF0H–FFFH
FC0H–FFFH
All bits of the memory bank specified by
EMB and SMB that are bit-manipulatable

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

P2308C2316P2316Ks57p2308Ks57c2316Ks57p2316

Table of Contents