📄 8255.s
字号:
std y+0,R2
ldi R18,40
ldi R16,4
xcall _disp_zf
.dbline -2
L104:
.dbline 0 ; func end
adiw R28,2
xjmp pop_xgset303C
.dbsym r da 10 I
.dbsym r x 20 c
.dbsym r CHN 12 c
.dbend
.dbfunc e xianshi20 _xianshi20 fV
.even
_xianshi20::
sbiw R28,2
.dbline -1
.dbline 688
;
; }
; void xianshi20()
; {Clr_Scr();
.dbline 688
xcall _Clr_Scr
.dbline 689
; Clr_Scr();
xcall _Clr_Scr
.dbline 690
; LCDCS21;LCDCS10;
sbi 0x3,2
.dbline 690
cbi 0x3,1
.dbline 691
; disp_hz(0,0, dqing);
ldi R24,<_dqing
ldi R25,>_dqing
std y+1,R25
std y+0,R24
clr R18
clr R16
xcall _disp_hz
.dbline 692
; disp_hz(0,16, chu);
ldi R24,<_chu
ldi R25,>_chu
std y+1,R25
std y+0,R24
ldi R18,16
clr R16
xcall _disp_hz
.dbline 693
; disp_hz(0,32, ru);
ldi R24,<_ru
ldi R25,>_ru
std y+1,R25
std y+0,R24
ldi R18,32
clr R16
xcall _disp_hz
.dbline 694
; disp_hz(0,48, you);
ldi R24,<_you
ldi R25,>_you
std y+1,R25
std y+0,R24
ldi R18,48
clr R16
xcall _disp_hz
.dbline 695
; LCDCS20;LCDCS11;
cbi 0x3,2
.dbline 695
sbi 0x3,1
.dbline 696
; disp_hz(0,0, xiao);
ldi R24,<_xiao
ldi R25,>_xiao
std y+1,R25
std y+0,R24
clr R18
clr R16
xcall _disp_hz
.dbline 697
; disp_hz(0,16, ddian);
ldi R24,<_ddian
ldi R25,>_ddian
std y+1,R25
std y+0,R24
ldi R18,16
clr R16
xcall _disp_hz
.dbline 698
; disp_hz(0,32, dliu);
ldi R24,<_dliu
ldi R25,>_dliu
std y+1,R25
std y+0,R24
ldi R18,32
clr R16
xcall _disp_hz
.dbline 700
;
; LCDCS21;LCDCS10;
sbi 0x3,2
.dbline 700
cbi 0x3,1
.dbline 701
; disp_zf(2,0, sz2);
ldi R24,<_sz2
ldi R25,>_sz2
std y+1,R25
std y+0,R24
clr R18
ldi R16,2
xcall _disp_zf
.dbline 702
; disp_zf(2,8, sz0);
ldi R24,<_sz0
ldi R25,>_sz0
std y+1,R25
std y+0,R24
ldi R18,8
ldi R16,2
xcall _disp_zf
.dbline 703
; disp_zf(2,16, zhixian);
ldi R24,<_zhixian
ldi R25,>_zhixian
std y+1,R25
std y+0,R24
ldi R18,16
ldi R16,2
xcall _disp_zf
.dbline 704
; disp_zf(2,24, sz2);
ldi R24,<_sz2
ldi R25,>_sz2
std y+1,R25
std y+0,R24
ldi R18,24
ldi R16,2
xcall _disp_zf
.dbline 705
; disp_zf(2,32, sz0);
ldi R24,<_sz0
ldi R25,>_sz0
std y+1,R25
std y+0,R24
ldi R18,32
ldi R16,2
xcall _disp_zf
.dbline 706
; disp_zf(2,40, sz0);
ldi R24,<_sz0
ldi R25,>_sz0
std y+1,R25
std y+0,R24
ldi R18,40
ldi R16,2
xcall _disp_zf
.dbline 708
;
; disp_zf(2,48, sz0);
ldi R24,<_sz0
ldi R25,>_sz0
std y+1,R25
std y+0,R24
ldi R18,48
ldi R16,2
xcall _disp_zf
.dbline 710
;
; disp_zf(2,56, zfm);
ldi R24,<_zfm
ldi R25,>_zfm
std y+1,R25
std y+0,R24
ldi R18,56
ldi R16,2
xcall _disp_zf
.dbline 711
; LCDCS20;LCDCS11;
cbi 0x3,2
.dbline 711
sbi 0x3,1
.dbline 712
; disp_zf(2,0, zfA);
ldi R24,<_zfA
ldi R25,>_zfA
std y+1,R25
std y+0,R24
clr R18
ldi R16,2
xcall _disp_zf
.dbline 713
; disp_zf(2,16, sz0);
ldi R24,<_sz0
ldi R25,>_sz0
std y+1,R25
std y+0,R24
ldi R18,16
ldi R16,2
xcall _disp_zf
.dbline 714
; disp_zf(2,24, sz0);
ldi R24,<_sz0
ldi R25,>_sz0
std y+1,R25
std y+0,R24
ldi R18,24
ldi R16,2
xcall _disp_zf
.dbline 715
; disp_zf(2,32, sz0);
ldi R24,<_sz0
ldi R25,>_sz0
std y+1,R25
std y+0,R24
ldi R18,32
ldi R16,2
xcall _disp_zf
.dbline 716
; disp_zf(2,40, sz0);
ldi R24,<_sz0
ldi R25,>_sz0
std y+1,R25
std y+0,R24
ldi R18,40
ldi R16,2
xcall _disp_zf
.dbline 717
; disp_zf(2,48, zfm);
ldi R24,<_zfm
ldi R25,>_zfm
std y+1,R25
std y+0,R24
ldi R18,48
ldi R16,2
xcall _disp_zf
.dbline 718
; disp_zf(2,56, zfA);
ldi R24,<_zfA
ldi R25,>_zfA
std y+1,R25
std y+0,R24
ldi R18,56
ldi R16,2
xcall _disp_zf
.dbline -2
L109:
.dbline 0 ; func end
adiw R28,2
ret
.dbend
.dbfunc e xianshi21 _xianshi21 fV
.even
_xianshi21::
sbiw R28,2
.dbline -1
.dbline 727
;
;
;
;
;
; }
;
; void xianshi21()
; {Clr_Scr();
.dbline 727
xcall _Clr_Scr
.dbline 728
; Clr_Scr();
xcall _Clr_Scr
.dbline 729
; LCDCS21;LCDCS10;
sbi 0x3,2
.dbline 729
cbi 0x3,1
.dbline 730
; disp_hz(2,0, yu);
ldi R24,<_yu
ldi R25,>_yu
std y+1,R25
std y+0,R24
clr R18
ldi R16,2
xcall _disp_hz
.dbline 731
; disp_hz(2,16, zhi);
ldi R24,<_zhi
ldi R25,>_zhi
std y+1,R25
std y+0,R24
ldi R18,16
ldi R16,2
xcall _disp_hz
.dbline 732
; disp_hz(2,32, ddian);
ldi R24,<_ddian
ldi R25,>_ddian
std y+1,R25
std y+0,R24
ldi R18,32
ldi R16,2
xcall _disp_hz
.dbline 733
; disp_hz(2,48, dliu);
ldi R24,<_dliu
ldi R25,>_dliu
std y+1,R25
std y+0,R24
ldi R18,48
ldi R16,2
xcall _disp_hz
.dbline 734
; LCDCS20;LCDCS11;
cbi 0x3,2
.dbline 734
sbi 0x3,1
.dbline 735
; disp_zf(2,16, num[jianzhi[0]]);
ldi R24,<_num
ldi R25,>_num
lds R30,_jianzhi
clr R31
sbrc R30,7
com R31
lsl R30
rol R31
add R30,R24
adc R31,R25
ldd R2,z+0
ldd R3,z+1
std y+1,R3
std y+0,R2
ldi R18,16
ldi R16,2
xcall _disp_zf
.dbline 736
; disp_zf(2,24, num[jianzhi[1]]);
ldi R24,<_num
ldi R25,>_num
lds R30,_jianzhi+1
clr R31
sbrc R30,7
com R31
lsl R30
rol R31
add R30,R24
adc R31,R25
ldd R2,z+0
ldd R3,z+1
std y+1,R3
std y+0,R2
ldi R18,24
ldi R16,2
xcall _disp_zf
.dbline 737
; disp_zf(2,32, num[jianzhi[2]]);
ldi R24,<_num
ldi R25,>_num
lds R30,_jianzhi+2
clr R31
sbrc R30,7
com R31
lsl R30
rol R31
add R30,R24
adc R31,R25
ldd R2,z+0
ldd R3,z+1
std y+1,R3
std y+0,R2
ldi R18,32
ldi R16,2
xcall _disp_zf
.dbline 738
; disp_zf(2,40, num[jianzhi[3]]);
ldi R24,<_num
ldi R25,>_num
lds R30,_jianzhi+3
clr R31
sbrc R30,7
com R31
lsl R30
rol R31
add R30,R24
adc R31,R25
ldd R2,z+0
ldd R3,z+1
std y+1,R3
std y+0,R2
ldi R18,40
ldi R16,2
xcall _disp_zf
.dbline 740
;
; disp_zf(2,48, zfm);
ldi R24,<_zfm
ldi R25,>_zfm
std y+1,R25
std y+0,R24
ldi R18,48
ldi R16,2
xcall _disp_zf
.dbline 741
; disp_zf(2,56, zfA);
ldi R24,<_zfA
ldi R25,>_zfA
std y+1,R25
std y+0,R24
ldi R18,56
ldi R16,2
xcall _disp_zf
.dbline 742
; disp_zf(4,48, zfm);
ldi R24,<_zfm
ldi R25,>_zfm
std y+1,R25
std y+0,R24
ldi R18,48
ldi R16,4
xcall _disp_zf
.dbline 743
; disp_zf(4,56, zfA);
ldi R24,<_zfA
ldi R25,>_zfA
std y+1,R25
std y+0,R24
ldi R18,56
ldi R16,4
xcall _disp_zf
.dbline 744
; LCDCS21;LCDCS10;
sbi 0x3,2
.dbline 744
cbi 0x3,1
.dbline 745
; disp_hz(4,0, si);
ldi R24,<_si
ldi R25,>_si
std y+1,R25
std y+0,R24
clr R18
ldi R16,4
xcall _disp_hz
.dbline 746
; disp_hz(4,16, ji);
ldi R24,<_ji
ldi R25,>_ji
std y+1,R25
std y+0,R24
ldi R18,16
ldi R16,4
xcall _disp_hz
.dbline 747
; disp_hz(4,32, ddian);
ldi R24,<_ddian
ldi R25,>_ddian
std y+1,R25
std y+0,R24
ldi R18,32
ldi R16,4
xcall _disp_hz
.dbline 748
; disp_hz(4,48, dliu);
ldi R24,<_dliu
ldi R25,>_dliu
std y+1,R25
std y+0,R24
ldi R18,48
ldi R16,4
xcall _disp_hz
.dbline -2
L110:
.dbline 0 ; func end
adiw R28,2
ret
.dbend
.dbfunc e xianshiAD2 _xianshiAD2 fV
; da -> R10,R11
; x -> R20
; CHN -> R12
.even
_xianshiAD2::
xcall push_xgset303C
mov R12,R16
sbiw R28,2
.dbline -1
.dbline 752
;
; }
; void xianshiAD2(unsigned char CHN)
; { int da;
.dbline 754
; unsigned char x;
; for(x=0;x<2;x++)
clr R20
xjmp L118
L115:
.dbline 755
; da=startAD(CHN)/2;
mov R16,R12
xcall _startAD
movw R10,R16
lsr R11
ror R10
L116:
.dbline 754
inc R20
L118:
.dbline 754
cpi R20,2
brlo L115
X25:
.dbline 756
; LCDCS20;LCDCS11;
cbi 0x3,2
.dbline 756
sbi 0x3,1
.dbline 757
; disp_zf(4,16, num[da/1000]);
ldi R18,1000
ldi R19,3
movw R16,R10
xcall div16s
movw R30,R16
lsl R30
rol R31
ldi R24,<_num
ldi R25,>_num
add R30,R24
adc R31,R25
ldd R2,z+0
ldd R3,z+1
std y+1,R3
std y+0,R2
ldi R18,16
ldi R16,4
xcall _disp_zf
.dbline 758
; disp_zf(4,24, num[(da/100)%10]);
ldi R18,100
ldi R19,0
movw R16,R10
xcall div16s
ldi R18,10
ldi R19,0
xcall mod16s
movw R30,R16
lsl R30
rol R31
ldi R24,<_num
ldi R25,>_num
add R30,R24
adc R31,R25
ldd R2,z+0
ldd R3,z+1
std y+1,R3
std y+0,R2
ldi R18,24
ldi R16,4
xcall _disp_zf
.dbline 760
;
; disp_zf(4,32, num[(da/10)%10]);
ldi R18,10
ldi R19,0
movw R16,R10
xcall div16s
ldi R18,10
ldi R19,0
xcall mod16s
movw R30,R16
lsl R30
rol R31
ldi R24,<_num
ldi R25,>_num
add R30,R24
adc R31,R25
ldd R2,z+0
ldd R3,z+1
std y+1,R3
std y+0,R2
ldi R18,32
ldi R16,4
xcall _disp_zf
.dbline 761
; disp_zf(4,40, num[da%10]);
ldi R18,10
ldi R19,0
movw R16,R10
xcall mod16s
movw R30,R16
lsl R30
rol R31
ldi R24,<_num
ldi R25,>_num
add R30,R24
adc R31,R25
ldd R2,z+0
ldd R3,z+1
std y+1,R3
std y+0,R2
ldi R18,40
ldi R16,4
xcall _disp_zf
.dbline -2
L114:
.dbline 0 ; func end
adiw R28,2
xjmp pop_xgset303C
.dbsym r da 10 I
.dbsym r x 20 c
.dbsym r CHN 12 c
.dbend
.dbfunc e guoliu _guoliu fV
.even
_guoliu::
sbiw R28,2
.dbline -1
.dbline 765
;
; }
; void guoliu()
; {Clr_Scr(); Clr_Scr();
.dbline 765
xcall _Clr_Scr
.dbline 765
xcall _Clr_Scr
.dbline 766
; LCDCS21;LCDCS10;
sbi 0x3,2
.dbline 766
cbi 0x3,1
.dbline 767
; disp_hz(2,16, guo);
ldi R24,<_guo
ldi R25,>_guo
std y+1,R25
std y+0,R24
ldi R18,16
ldi R16,2
xcall _disp_hz
.dbline 768
; disp_hz(2,32, dliu);
ldi R24,<_dliu
ldi R25,>_dliu
std y+1,R25
std y+0,R24
ldi R18,32
ldi R16,2
xcall _disp_hz
.dbline 770
;
; LCDCS20;LCDCS11;
cbi 0x3,2
.dbline 770
sbi 0x3,1
.dbline 771
; disp_hz(2,0, dqing);
ldi R24,<_dqing
ldi R25,>_dqing
std y+1,R25
std y+0,R24
clr R18
ldi R16,2
xcall _disp_hz
.dbline 772
; disp_hz(2,16, chong);
ldi R24,<_chong
ldi R25,>_chong
std y+1,R25
std y+0,R24
ldi R18,16
ldi R16,2
xcall _disp_hz
.dbline 773
; disp_hz(2,32, qi);
ldi R24,<_qi
ldi R25,>_qi
std y+1,R25
std y+0,R24
ldi R18,32
ldi R16,2
xcall _disp_hz
.dbline -2
L119:
.dbline 0 ; func end
adiw R28,2
ret
.dbend
.dbfunc e xianshi30 _xianshi30 fV
.even
_xianshi30::
sbiw R28,2
.dbline -1
.dbline 780
;
;
;
;
; }
; void xianshi30()
; {Clr_Scr();
.dbline 780
xcall _Clr_Scr
.dbline 781
; LCDCS11;LCDCS20;
sbi 0x3,1
.dbline 781
cbi 0x3,2
.dbline 782
; disp_zf(2,0,sz0) ;
ldi R24,<_sz0
ldi R25,>_sz0
std y+1,R25
std y+0,R24
clr R18
ldi R16,2
xcall _disp_zf
.dbline 783
; disp_zf(2,8,sz0) ;
ldi R24,<_sz0
ldi R25,>_sz0
std y+1,R25
std y+0,R24
ldi R18,8
ldi R16,2
xcall _disp_zf
.dbline 784
; disp_zf(2,16,sz0) ;
ldi R24,<_sz0
ldi R25,>_sz0
std y+1,R25
std y+0,R24
ldi R18,16
ldi R16,2
xcall _disp_zf
.dbline 785
; disp_zf(2,24,sz0) ;
ldi R24,<_sz0
ldi R25,>_sz0
std y+1,R25
std y+0,R24
ldi R18,24
ldi R16,2
xcall _disp_zf
.dbline 786
; disp_zf(2,40,sz0) ;
ldi R24,<_sz0
ldi R25,>_sz0
std y+1,R25
std y+0,R24
ldi R18,40
ldi R16,2
xcall _disp_zf
.dbline 787
; LCDCS10;LCDCS21;
cbi 0x3,1
.dbline 787
sbi 0x3,2
.dbline 788
; disp_hz(0,0,dqing);
ldi R24,<_dqing
ldi R25,>_dqing
std y+1,R25
std y+0,R24
clr R18
clr R16
xcall _disp_hz
.dbline 789
; disp_hz(0,16,chu);
ldi R24,<_chu
ldi R25,>_chu
std y+1,R25
std y+0,R24
ldi R18,16
clr R16
xcall _disp_hz
.dbline 790
; disp_hz(0,32,ru);
ldi R24,<_ru
ldi R25,>_ru
std y+1,R25
std y+0,R24
ldi R18,32
clr R16
xcall _disp_hz
.dbline 791
; disp_hz(0,48,yu);
ldi R24,<_yu
ldi R25,>_yu
std y+1,R25
std y+0,R24
ldi R18,48
clr R16
xcall _disp_hz
.dbline 792
; LCDCS11;LC
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -