CROSS ASSEMBLER ASM62XX
III-20 EPSON S1C62 FAMILY
DEVELOPMENT TOOL REFERENCE MANUAL
APPENDIX ASM62XX EXECUTION EXAMPLE
1) Source file (C2XX0A0.DAT)
A>TYPE C2XX0A0.DAT
;
;*******<< SAMPLE PROGRAM :E0C62XX >>*******
;
ABC EQU 0F0H
TEN EQU 10
;
START LD A,0
LD X,8
LD Y,3
LDPX A,MX
;
ORG 0E0H
;
NEXT ADD B,TEN
LD MX,XH
AND A,101B
FAN MY,A
RCF
SCPX MX,B
JP C,NEXT
;
;-------<< ERROR >>-------
EQU 0CH-2
ERROR EQU 4
ERROR LD A,3
SBD MX,A
INC Z
JP UNDEF
ORG 11100000B
NOP5
SECTION
ORG ABC+0FH
NOP7
NOP7
END