资源描述:
《简易时钟秒表计时器》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、ORG0000HLJMPMAINORG000BHLJMPINTORG0100HMAIN:MOVR7,#00HMOVR6,#00HMOVR5,#00HMOVR4,#00HMOVR3,#00HMOVR2,#00HMOVR1,#00HMOVR0,#00HMOV30H,#10HMOV40H,#08HMOV50H,#00HMOV51H,#00HMOV52H,#00HMOV53H,#00HMOV15H,#10HMOV16H,#00HMOV17H,#01HMOV18H,#01HMOV19H,#01HMOV21H,#01HMOV22H,#01HMOV23H,#01HMOVTMOD,#01HMOVTH0,
2、#0D8HMOVTL0,#0F0HSETBET0SETBEASETBTR0LOOP:MOVA,P1ANLA,#0FFHCJNEA,#0FFH,KE2LJMPD1KE2:CLRCMOVB,#00HKE3:ANLA,#0FFHRRCAJNCKE4INCBSJMPKE3KE4:ANLP1,#0FFHMOVA,P1ANLA,#0FFHCJNEA,#0FFH,KE4MOVA,BCJNEA,#00H,B1MOV40H,#08HLJMPMMB1:CJNEA,#01H,B2//MOV40H,#08H//INCR6B2:CJNEA,#02H,B3INCR4B3:CJNEA,#03H,B4INCR3B4:C
3、JNEA,#04H,B5INCR2B5:CJNEA,#05H,B6MOV15H,#08HMOVR7,#05HMOV16H,R7MOV17H,R1MOV18H,50HMOV19H,51HMOV23H,52HMOV22H,53HB6:CJNEA,#06H,B7MOV16H,#00HMOV17H,#00HMOV18H,#00HMOV19H,#00HMOV21H,#00HMOV22H,#00HMOV23H,#00HMOV40H,#05HMOV50H,#00HMOV51H,#00HMOV52H,#00HMOV53H,#00H//****************B7:CJNEA,#07H,D1MOV
4、50H,#00HMOV51H,#00HMOV52H,#00HMOV53H,#00HMOV15H,#02HMOV16H,#00HMOV17H,#00HMOV18H,#00HMOV19H,#00HMOV21H,#00HMOV22H,#00HMOV23H,#00HMOV40H,#05HMOV50H,#00HMOVR7,#00HMOVR1,#00HMOVTH0,#0D8HMOVTL0,#0F0HD1:MOVA,#05HCJNEA,40H,DU1MOVA,#08HCJNEA,15H,MIAO1MOVA,16HSJMPZHANG1MOVDPTR,#TABMIAO1:MOVA,R7ZHANG1:MOV
5、CA,@A+DPTRMOVP0,#20HMOVP2,AMOV20H,#0AHLOP7:MOV21H,#50HDJNZ20H,LOP7MOVP0,#00HDU1:CJNER7,#10,LPP8MOVR7,#00H//*********************INCR1LPP8:MOVA,#05HCJNEA,40H,DU2MOVA,#08HCJNEA,15H,MIAO2MOVA,17HSJMPZHANG2MOVDPTR,#TABMIAO2:MOVA,R1ZHANG2:MOVCA,@A+DPTRMOVP0,#10HMOVP2,AMOV20H,#0AHLOP9:MOV21H,#50HDJNZ20
6、H,LOP9MOVP0,#00HDU2:CJNER1,#10,LPP1MOVR1,#00H//***********************INCR6INC50HLPP1:MOVDPTR,#TABMOVA,#08HCJNEA,40H,DU3MM:MOVA,R6MOVCA,@A+DPTRMOVP0,#20HMOVP2,AMOV20H,#0AHLOP1:MOV21H,#50HDJNZ20H,LOP1MOVP0,#00HDU3:CJNER6,#10,LPPEMOVR6,#00HLJMPMM1LPPE:MOVA,50HCJNEA,#10,LPP2MOV50H,#00HAJMPMM2//*****
7、******************MM1:INCR5AJMPLPP2MM2:INC51HLPP2:MOVDPTR,#TABMOVA,#08HCJNEA,40H,DU4MOVA,R5MOVCA,@A+DPTRMOVP0,#10HMOVP2,AMOV20H,#0AHLOP2:MOV21H,#50HDJNZ20H,LOP2MOVP0,#00HMOV20H,#0F0HLOPP:MOV21H,#03HDJNZ20H,LOPPDU4:CJNE