APPENDIX B CREATING PROCEDURE OF ASSEMBLY SOURCE FILE (Sub tool chain)
S5U1C88000C MANUAL II
EPSON
243
WORKBENCH/DEV TOOLS/OLD ASSEMBLER
B.2.13 Example for Mnemonic Notation
The examples for mnemonic notation in each addressing mode are shown in the below.
Addressing
Constant
Name
Label (default)
Default definition
name equ 50h
label: address 00ffh
#nn
eg.) ld a,#0ffh
eg.) ld a,#name
eg.) ld a,#label
-----
0 to 255
#mmnn
eg.) ld ba,#1000h
eg.) ld ba,#name
eg.) ld ba,#label
-----
0 to 65535
[br:ll]
eg.) ld b,[br:0ffh]
eg.) ld b,[br:name]
eg.) ld b,[br:label]
[br:low lod label]
0 to 255
[hhll]
eg.) ld 1,[1000h]
eg.) ld l,[name]
eg.) ld l,[label]
[lod label]
0 to 65535
[ix+dd]
eg.) ld [ix+10h],a
eg.) ld [ix+name],a
-----
-----
[iy+dd]
[sp+dd]
-128 to 127
#hh
eg.) ld br,#0ffh
eg.) ld br,#name
eg.) ld br,#label
high lod label
0 to 255
#pp
eg.) ld ep,#05h
eg.) ld ep,#name
eg.) ld ep,#label
pod label
0 to 255
#bb
eg.) ld nb,#05h
eg.) ld nb,#name
eg.) ld nb,#label
boc label
0 to 255
rr
eg.) jrs 10h
eg.) jrs name
eg.) jrs label
loc label
-128 to 127
[kk]
eg.) jp [10h]
eg.) jp [name]
eg.) jp [label]
[low lod label]
0 to 255
qqrr
eg.) jrl 1000h
eg.) jrl name
eg.) jrl label
loc label
-32768 to 32767
• Meaning of the above mentioned default definitions are as follows:
For example, when "jrl label" has been described, the cross assembler asm88 judges as "jrl loc label".
jrl label
→
jrl loc label
The program sequence is long jumped to the logical address converted from the physical address.
• An error occurs when the operand exceeding the above mentioned addressing range has been speci-
fied, or when it is judged to exceed it.
• In programming, pay attention to the following points when using the short branch or long branch
instruction.
jrs(l) 10H .....
Jumps to the address at a distance of (10+1)H from current address
jrs(l) $+10H ...
Jumps to the address at a distance of 10H from current address
Except for the above, notations described in the "S1C88 Core CPU Manual" can be used as is.