CROSS ASSEMBLER ASM62XX
S1C62 FAMILY
EPSON
III-17
DEVELOPMENT TOOL REFERENCE MANUAL
4.6.3
Macro-calls
The defined macro-name can be called from any location in the program by using the following format:
[<Label>]_<Macro-name>_ [<Actual-argument>, ...]
The MACRO can be called by using the macro-name.
When arguments are required, write actual arguments corresponding to the dummy arguments used in the
macro-definition. Multiple actual arguments must be separated by commas (,).
Actual and dummy arguments correspond sequentially from left to right. If the number of actual argu-
ments is greater than the number of dummy arguments, the excess actual arguments are ignored. If the
number of actual arguments is less than the number of dummy arguments, the excess dummy arguments
are replaced by nulls (00H).
Any label can be written before the macro-name.
Example:
Source file
ORG 0200H
CTAS EQU 00H
CTAE EQU 02H
CAFSET EQU 0101B
CAFRST EQU 0000B
CTBS EQU 10H
CTBE EQU 08H
CBFSET EQU 0001B
CBFRST EQU 0100B
COUNT MACRO FSET,FRST,CTS,CTE
LOCAL LOOP1
SET F,FSET
RST F,FRST
LD A,0
LD X,CTS
LOOP1 ACPX MX,A
CP XL,CTE
JP NZ,LOOP1
ENDM
COUNTA COUNT CAFSET,CAFRST,CTAS,CTAE
RET
COUNTB COUNT CBFSET,CBFRST,CTBS,CTBE
RET
END
The assembly listing file after assembly is shown on the next page.
Содержание 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: ......