SAM47 INSTRUCTION SET KS57C2308/P2308/C2316/P2316
5-6
SYMBOLS and CONVENTIONS
Table 5-4. Data Type Symbols
Symbol Data Type
dImmediate data
aAddress data
bBit data
rRegister data
fFlag data
iIndirect addressing data
tmemc × 0.5 immediate data
Table 5-5. Register Identifiers
Full Register Name ID
4-bit accumulator A
4-bit working registers E, L, H, X, W,
Z, Y
8-bit extended accumulator EA
8-bit memory pointer HL
8-bit working registers WX, YZ, WL
Select register bank “n” SRB n
Select memory bank “n” SMB n
Carry flag C
Program status word PSW
Port “n” Pn
“m”-th bit of port “n” Pn.m
Interrupt priority register IPR
Enable memory bank flag EMB
Enable register bank flag ERB
Table 5-6. Instruction Operand Notation
Symbol Definition
DA Direct address
@Indirect address prefix
src Source operand
dst Destination operand
(R) Contents of register R
.b Bit location
im 4-bit immediate data (number)
imm 8-bit immediate data (number)
#Immediate data prefix
ADR 000H–1FFFH immediate address
ADRn “n” bit address
RA, E, L, H, X, W, Z, Y
Ra E, L, H, X, W, Z, Y
RR EA, HL, WX, YZ
RRa HL, WX, WL
RRb HL, WX, YZ
RRc WX, WL
mema FB0H–FBFH, FF0H–FFFH
memb FC0H–FFFH
memc Code direct addressing:
0020H–007FH
SB Select bank register (8 bits)
XOR Logical exclusive-OR
OR Logical OR
AND Logical AND
[(RR)] Contents addressed by RR