CROSS ASSEMBLER ASM62XX
S1C62 FAMILY
EPSON
III-15
DEVELOPMENT TOOL REFERENCE MANUAL
4.5.3
Assembler control pseudo-instructions
■
END
END
To terminate assembly
The END statement terminates assembly. All statements following the END statement are ignored. Be
sure to write this statement at the end of the program. If it is missing, assembly may not terminate.
A label can be written before the END statement, but it cannot be referenced because it is not cataloged
in the label table.
4.6 Macro-Functions
When using the same statement block at multiple locations in a program, the statement block can be called
using a name defined beforehand. A statement block that has been so defined is called a macro.
Unlike a subroutine, the statement block is expanded at all locations where it is called, so the programmer
should consider the statement block size and frequency of use and determine whether a macro or a subrou-
tine is more appropriate.
4.6.1
Macro-instructions
Example:
Source file
:
JPM LABEL2
:
PAGE 2
LABEL2 LD A,0
:
Assembly list file after expansion
:
JPM LABEL2
+ PSET LABEL2
+ JP LABEL2
:
PAGE 2
LABEL2 LD A,0
:
ASM62XX provides the macro-
instructions listed below so that
branching between pages is possible
without specifying the destination
page using the PSET instruction.
Character string ps represents 13-bit
immediate data that indicates the
branch-destination address. A label
can be used for it.
JPM ps
JPM C,ps
JPM NC,ps
JPM Z,ps
JPM NZ,ps
CALLM ps
PSET p
JP s
PSET p
JP C,s
PSWT p
JP NC,s
PSET p
JP Z,s
PSET p
JP NZ,s
PSET p
CALL s
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1
1
1
1
1
0
1
1
1
1
1
1
1
1
1
0
0
0
0
0
0
1
0
0
0
1
0
0
0
s7
0
s7
0
s7
0
s7
0
s7
0
s7
1
s6
1
s6
1
s6
1
s6
1
s6
1
s6
0
s5
0
s5
0
s5
0
s5
0
s5
0
s5
p4
s4
p4
s4
p4
s4
p4
s4
p4
s4
p4
s4
p3
s3
p3
s3
p3
s3
p3
s3
p3
s3
p3
s3
p2
s2
p2
s2
p2
s2
p2
s2
p2
s2
p2
s2
p1
s1
p1
s1
p1
s1
p1
s1
p1
s1
p1
s1
p0
s0
p0
s0
p0
s0
p0
s0
p0
s0
p0
s0
11 10 9
8
7
6
5
4
3
2
1
0
Code
Mnemonic
after expansion
Macro-
instruction
Содержание S1C62 Family
Страница 1: ...MF599 06 Development Tool Reference Manual CMOS 4 BIT SINGLE CHIP MICROCOMPUTER S1C62 Family ...
Страница 4: ......
Страница 6: ......
Страница 8: ......
Страница 10: ......
Страница 18: ......
Страница 20: ......
Страница 22: ......
Страница 26: ......
Страница 28: ......
Страница 30: ......
Страница 54: ......
Страница 56: ......
Страница 58: ......
Страница 70: ......
Страница 72: ......
Страница 74: ......
Страница 82: ......
Страница 84: ......
Страница 86: ......
Страница 98: ......
Страница 100: ......
Страница 112: ......
Страница 164: ...Format ICE CONTROL SOFTWARE ICS62XX VIII 50 EPSON S1C62 FAMILY DEVELOPMENT TOOL REFERENCE MANUAL ...
Страница 198: ...Format ICE CONTROL SOFTWARE ICS62XX VIII 84 EPSON S1C62 FAMILY DEVELOPMENT TOOL REFERENCE MANUAL ...
Страница 199: ...Format ICE CONTROL SOFTWARE ICS62XX S1C62 FAMILY EPSON VIII 85 DEVELOPMENT TOOL REFERENCE MANUAL 3 7 HELP Command ...
Страница 206: ......
Страница 207: ...IX MASK DATA CHECKER MDC62XX This part explains how to operate the MDC62XX Mask Data Checker for the S1C62 Family ...
Страница 208: ......
Страница 210: ......