APPENDIX B CREATING PROCEDURE OF ASSEMBLY SOURCE FILE (Sub tool chain)
S5U1C88000C MANUAL II
EPSON
241
WORKBENCH/DEV TOOLS/OLD ASSEMBLER
Operation rules for BOC, LOC, POD and LOD
In the unary operators, four operators BOC, LOC, POD and LOD are peculiar to the S1C88, and possesses
original rules for operation as the below.
BOC
(physical address & 0x7f8000) >> 15
LOC
If (physical address & 0x7f8000)
(physical address & 0x7fff) | 0x8000
else
(physical address & 0x7fff) | 0x0000
POD
(physical address & 0xff0000) >> 16
LOD
(physical address & 0xffff)
In the above, the value indicates the physical value possessed by the operand. During assembly, the
asm88 only generates special relocation information corresponding to each operator and the actual
address calculation is done by the link88 during linking.
B.2.10 Instruction Set
The asm88 accepts each of the following instructions as CPU instruction set.
S1C88 Family instruction list
adc
cp
inc
neg
rete sep
swap
add
cpl
int
nop
rets sla
upck
and
dec
jp
or
rl
sll
xor
bit
div
jrl
pack rlc
slp
call djr
jrs
pop
rr
sra
carl ex
ld
push rrc
srl
cars halt mlt
ret
sbc
sub
B.2.11 Register Name
The CPU register names indicated in the following have been reserved as keywords in the asm88. Refer to
the "S1C88 Core CPU Manual" for information on the respective register functions.
a
Data register A
b
Data register B
ba
A and B register pair
h
Data register H
l
Data register L
hl
Index register HL
ix
Index register IX
iy
Index register IY
sp
Stack pointer SP
br
Base register BR
sc
System condition flag SC
pc
Program counter PC
nb
New code bank register NB
cb
Code bank register CB
ep
Expand page register EP
xp
XP expand page register for IX
yp
YP expand page register for IY
ip
XP and YP register