CROSS ASSEMBLER ASM62XX
III-18 EPSON S1C62 FAMILY
DEVELOPMENT TOOL REFERENCE MANUAL
Assembly listing file
LISTING OF ASM62XX C2XX0A1.PRN ........ PAGE 1
LINE BANK PCP PCS OBJ SOURCE STATEMENT
1 ORG 0200H
2
3 0000= CTAS EQU 00H
4 0002= CTAE EQU 02H
5 0005= CAFSET EQU 0101B
6 0000= CAFRST EQU 0000B
7 0010= CTBS EQU 10H
8 0008= CTBE EQU 08H
9 0001= CBFSET EQU 0001B
10 0004= CBFRST EQU 0100B
11
12 COUNT MACRO FSET,FRST,CTS,CTE
13 LOCAL LOOP1
14 SET F,FSET
15 RST F,FRST
16 LD A,0
17 LD X,CTS
18 LOOP1 ACPX MX,A
19 CP XL,CTE
20 JP NZ,LOOP1
21 ENDM
22
23 COUNTA COUNT CAFSET,CAFRST,CTAS,CTAE
24 0 2 00 F45 + SET F,CAFSET
25 0 2 01 F50 + RST F,CAFRST
26 0 2 02 E00 + LD A,0
27 0 2 03 B00 + LD X,CTAS
28 0 2 04 F28 + ??0001 ACPX MX,A
29 0 2 05 A52 + CP XL,CTAE
30 0 2 06 704 + JP NZ,??0001
31 0 2 07 FDF RET
32
33 COUNTB COUNT CBFSET,CBFRST,CTBS,CTBE
34 0 2 08 F41 + SET F,CBFSET
35 0 2 09 F54 + RST F,CBFRST
36 0 2 0A E00 + LD A,0
37 0 2 0B B10 + LD X,CTBS
38 0 2 0C F28 + ??0002 ACPX MX,A
39 0 2 0D A58 + CP XL,CTBE
40 0 2 0E 70C + JP NZ,??0002
41 0 2 0F FDF RET
42
43 END