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
Содержание S1C6S3N2
Страница 4: ......
Страница 6: ......
Страница 7: ...Hardware Hardware S1C6S3N2 I Technical Hardware ...
Страница 8: ......
Страница 141: ...Software Software S1C6S3N2 II Technical Software ...
Страница 142: ......
Страница 146: ......