S1C6S3N2 TECHNICAL SOFTWARE
EPSON
II-67
CHAPTER 5: PERIPHERAL CIRCUITS (Clock Timer)
Page 0 routine "CT60"
PAGE
0
;
;
CT60:
CALZ
CTUP
;
CP
MX,6H
;
JP
NZ,RTP0
;
LDPX
MX,0H
;
RETS
;
Page 0 routine "CTUP"
Count 1 up the BCD counter
Where is the tens' position?
Not "6": Go to RTP0
"6":
Zero clear
Return to parent routine and skip
PAGE
0
;
;
CTUP:
SDF
;
ADD
MX,1H
;
INC
X
;
ADC
MX,0H
;
RDF
;
RTP0:
RET
;
Preparation: Set D flag
Increment data by 1 with BCD
Set tens' place address
Carry processing to tens' place
After process: Reset D flag
Return to parent routine
Reference
Summary of Contents for S1C6S3N2
Page 4: ......
Page 6: ......
Page 7: ...Hardware Hardware S1C6S3N2 I Technical Hardware ...
Page 8: ......
Page 141: ...Software Software S1C6S3N2 II Technical Software ...
Page 142: ......
Page 146: ......