📄 ear.asm
字号:
push ar2
lcall _kbisr
mov r3,dpl
pop ar2
mov ar2,r3
C$keyboard.h$244$2$3 ==.
; D:\Shekhar\Projects\EAR-1022\System/keyboard\keyboard.h 244
; Peephole 132 changed ljmp to sjmp
; Peephole 199 optimized misc jump sequence
cjne r2,#0xFF,00104$
;00131$:
; Peephole 200 removed redundant sjmp
00132$:
C$keyboard.h$246$3$4 ==.
; D:\Shekhar\Projects\EAR-1022\System/keyboard\keyboard.h 246
mov dpl,#0x00
ljmp 00117$
00104$:
C$keyboard.h$249$2$3 ==.
; D:\Shekhar\Projects\EAR-1022\System/keyboard\keyboard.h 249
mov dpl,_recent_scan_code
C$keyboard.h$251$2$3 ==.
; D:\Shekhar\Projects\EAR-1022\System/keyboard\keyboard.h 251
ljmp 00117$
00106$:
C$keyboard.h$254$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/keyboard\keyboard.h 254
push ar2
lcall _kbisr
mov r3,dpl
pop ar2
mov ar2,r3
C$keyboard.h$256$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/keyboard\keyboard.h 256
; Peephole 132 changed ljmp to sjmp
; Peephole 199 optimized misc jump sequence
cjne r2,#0xFF,00108$
;00133$:
; Peephole 200 removed redundant sjmp
00134$:
C$keyboard.h$258$2$5 ==.
; D:\Shekhar\Projects\EAR-1022\System/keyboard\keyboard.h 258
mov dpl,#0x00
ljmp 00117$
00108$:
C$keyboard.h$261$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/keyboard\keyboard.h 261
mov a,_recent_scan_code
; Peephole 132 changed ljmp to sjmp
; Peephole 199 optimized misc jump sequence
cjne a,#0xF0,00112$
;00135$:
; Peephole 200 removed redundant sjmp
00136$:
C$keyboard.h$263$2$6 ==.
; D:\Shekhar\Projects\EAR-1022\System/keyboard\keyboard.h 263
push ar2
lcall _kbisr
mov r3,dpl
pop ar2
mov ar2,r3
C$keyboard.h$265$2$6 ==.
; D:\Shekhar\Projects\EAR-1022\System/keyboard\keyboard.h 265
; Peephole 132 changed ljmp to sjmp
; Peephole 199 optimized misc jump sequence
cjne r2,#0xFF,00110$
;00137$:
; Peephole 200 removed redundant sjmp
00138$:
C$keyboard.h$267$3$7 ==.
; D:\Shekhar\Projects\EAR-1022\System/keyboard\keyboard.h 267
mov dpl,#0x00
; Peephole 132 changed ljmp to sjmp
sjmp 00117$
00110$:
C$keyboard.h$270$2$6 ==.
; D:\Shekhar\Projects\EAR-1022\System/keyboard\keyboard.h 270
mov dpl,_recent_scan_code
lcall _scantoascii
mov r2,dpl
; Peephole 132 changed ljmp to sjmp
sjmp 00113$
00112$:
C$keyboard.h$274$2$8 ==.
; D:\Shekhar\Projects\EAR-1022\System/keyboard\keyboard.h 274
mov dpl,_recent_scan_code
push ar2
lcall _scantoascii
mov r3,dpl
pop ar2
mov ar2,r3
00113$:
C$keyboard.h$277$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/keyboard\keyboard.h 277
clr c
; Peephole 159 avoided xrl during execution
mov a,#(0x61 ^ 0x80)
mov b,r2
xrl b,#0x80
subb a,b
; Peephole 108 removed ljmp by inverse jump logic
jnc 00115$
00139$:
clr c
; Peephole 159 avoided xrl during execution
mov a,#(0x7A ^ 0x80)
mov b,r2
xrl b,#0x80
subb a,b
; Peephole 132 changed ljmp to sjmp
; Peephole 160 removed sjmp by inverse jump logic
jc 00115$
00140$:
mov a,#0x41
add a,r2
; Peephole 105 removed redundant mov
mov r3,a
add a,#0x9f
mov r2,a
00115$:
C$keyboard.h$279$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/keyboard\keyboard.h 279
mov dpl,r2
00117$:
C$keyboard.h$280$1$1 ==.
XG$getkey$0$0 ==.
ret
;------------------------------------------------------------
;Allocation info for local variables in function 'init2x16lcd'
;------------------------------------------------------------
G$init2x16lcd$0$0 ==.
C$2x16lcd.h$12$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 12
; -----------------------------------------
; function init2x16lcd
; -----------------------------------------
_init2x16lcd:
C$2x16lcd.h$15$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 15
clr _RS
C$2x16lcd.h$16$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 16
mov _LCD_DATA,#0x38
C$2x16lcd.h$17$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 17
setb _ENABLE
C$2x16lcd.h$18$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 18
; Peephole 182 used 16 bit load of dptr
mov dptr,#(((0x00)<<8) + 0x0A)
lcall _delay
C$2x16lcd.h$19$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 19
clr _ENABLE
C$2x16lcd.h$20$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 20
; Peephole 182 used 16 bit load of dptr
mov dptr,#(((0x00)<<8) + 0x0A)
lcall _delay
C$2x16lcd.h$22$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 22
clr _RS
C$2x16lcd.h$23$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 23
mov _LCD_DATA,#0x0E
C$2x16lcd.h$24$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 24
setb _ENABLE
C$2x16lcd.h$25$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 25
; Peephole 182 used 16 bit load of dptr
mov dptr,#(((0x00)<<8) + 0x0A)
lcall _delay
C$2x16lcd.h$26$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 26
clr _ENABLE
C$2x16lcd.h$27$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 27
; Peephole 182 used 16 bit load of dptr
mov dptr,#(((0x00)<<8) + 0x0A)
lcall _delay
C$2x16lcd.h$29$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 29
clr _RS
C$2x16lcd.h$30$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 30
mov _LCD_DATA,#0x01
C$2x16lcd.h$31$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 31
setb _ENABLE
C$2x16lcd.h$32$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 32
; Peephole 182 used 16 bit load of dptr
mov dptr,#(((0x00)<<8) + 0x0A)
lcall _delay
C$2x16lcd.h$33$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 33
clr _ENABLE
C$2x16lcd.h$34$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 34
; Peephole 182 used 16 bit load of dptr
mov dptr,#(((0x00)<<8) + 0x0A)
lcall _delay
C$2x16lcd.h$36$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 36
clr _RS
C$2x16lcd.h$37$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 37
mov _LCD_DATA,#0x06
C$2x16lcd.h$38$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 38
setb _ENABLE
C$2x16lcd.h$39$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 39
; Peephole 182 used 16 bit load of dptr
mov dptr,#(((0x00)<<8) + 0x0A)
lcall _delay
C$2x16lcd.h$40$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 40
clr _ENABLE
C$2x16lcd.h$41$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 41
; Peephole 182 used 16 bit load of dptr
mov dptr,#(((0x00)<<8) + 0x0A)
lcall _delay
C$2x16lcd.h$43$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 43
clr _RS
C$2x16lcd.h$44$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 44
mov _LCD_DATA,#0x80
C$2x16lcd.h$45$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 45
setb _ENABLE
C$2x16lcd.h$46$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 46
; Peephole 182 used 16 bit load of dptr
mov dptr,#(((0x00)<<8) + 0x0A)
lcall _delay
C$2x16lcd.h$47$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 47
clr _ENABLE
C$2x16lcd.h$48$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 48
; Peephole 182 used 16 bit load of dptr
mov dptr,#(((0x00)<<8) + 0x0A)
lcall _delay
00101$:
C$2x16lcd.h$49$1$1 ==.
XG$init2x16lcd$0$0 ==.
ret
;------------------------------------------------------------
;Allocation info for local variables in function 'gotoxy'
;------------------------------------------------------------
;y Allocated to in memory with name '_gotoxy_PARM_2'
;x Allocated to registers r2
G$gotoxy$0$0 ==.
C$2x16lcd.h$51$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 51
; -----------------------------------------
; function gotoxy
; -----------------------------------------
_gotoxy:
C$2x16lcd.h$0$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 0
mov r2,dpl
C$2x16lcd.h$54$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 54
mov a,_gotoxy_PARM_2
; Peephole 132 changed ljmp to sjmp
; Peephole 199 optimized misc jump sequence
cjne a,#0x01,00102$
;00113$:
; Peephole 200 removed redundant sjmp
00114$:
C$2x16lcd.h$56$2$2 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 56
clr _RS
C$2x16lcd.h$57$2$2 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 57
mov _LCD_DATA,#0x80
C$2x16lcd.h$58$2$2 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 58
setb _ENABLE
C$2x16lcd.h$59$2$2 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 59
; Peephole 182 used 16 bit load of dptr
mov dptr,#(((0x00)<<8) + 0x0A)
push ar2
lcall _delay
pop ar2
C$2x16lcd.h$60$2$2 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 60
clr _ENABLE
; Peephole 132 changed ljmp to sjmp
sjmp 00112$
00102$:
C$2x16lcd.h$64$2$3 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 64
clr _RS
C$2x16lcd.h$65$2$3 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 65
mov _LCD_DATA,#0xC0
C$2x16lcd.h$66$2$3 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 66
setb _ENABLE
C$2x16lcd.h$67$2$3 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 67
; Peephole 182 used 16 bit load of dptr
mov dptr,#(((0x00)<<8) + 0x0A)
push ar2
lcall _delay
pop ar2
C$2x16lcd.h$68$2$3 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 68
clr _ENABLE
00112$:
00104$:
C$2x16lcd.h$70$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 70
cjne r2,#0x01,00115$
00115$:
; Peephole 132 changed ljmp to sjmp
; Peephole 160 removed sjmp by inverse jump logic
jc 00108$
00116$:
C$2x16lcd.h$72$2$4 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 72
clr _RS
C$2x16lcd.h$73$2$4 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 73
mov _LCD_DATA,#0x14
C$2x16lcd.h$74$2$4 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 74
clr _ENABLE
C$2x16lcd.h$75$2$4 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 75
; Peephole 182 used 16 bit load of dptr
mov dptr,#(((0x00)<<8) + 0x0A)
push ar2
lcall _delay
pop ar2
C$2x16lcd.h$76$2$4 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 76
setb _ENABLE
C$2x16lcd.h$77$2$4 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 77
; Peephole 182 used 16 bit load of dptr
mov dptr,#(((0x00)<<8) + 0x0A)
push ar2
lcall _delay
pop ar2
C$2x16lcd.h$70$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 70
dec r2
; Peephole 132 changed ljmp to sjmp
sjmp 00104$
00108$:
C$2x16lcd.h$79$1$1 ==.
XG$gotoxy$0$0 ==.
ret
;------------------------------------------------------------
;Allocation info for local variables in function 'putch'
;------------------------------------------------------------
;ch Allocated to registers r2
G$putch$0$0 ==.
C$2x16lcd.h$81$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 81
; -----------------------------------------
; function putch
; -----------------------------------------
_putch:
C$2x16lcd.h$91$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 91
mov r2,dpl
C$2x16lcd.h$84$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 84
setb _RS
C$2x16lcd.h$85$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 85
mov _LCD_DATA,r2
C$2x16lcd.h$87$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 87
setb _ENABLE
C$2x16lcd.h$88$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 88
; Peephole 182 used 16 bit load of dptr
mov dptr,#(((0x00)<<8) + 0x0A)
lcall _delay
C$2x16lcd.h$89$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 89
clr _ENABLE
C$2x16lcd.h$90$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 90
; Peephole 182 used 16 bit load of dptr
mov dptr,#(((0x00)<<8) + 0x0A)
lcall _delay
C$2x16lcd.h$91$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 91
00101$:
C$2x16lcd.h$92$1$1 ==.
XG$putch$0$0 ==.
ret
;------------------------------------------------------------
;Allocation info for local variables in function 'putstring'
;------------------------------------------------------------
;vi2 Allocated to in memory with name '_putstring_PARM_2'
;string Allocated to in memory with name '_putstring_PARM_3'
;vi1 Allocated to registers r2
G$putstring$0$0 ==.
C$2x16lcd.h$94$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 94
; -----------------------------------------
; function putstring
; -----------------------------------------
_putstring:
C$2x16lcd.h$0$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 0
mov r2,dpl
00101$:
C$2x16lcd.h$96$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 96
clr c
mov a,r2
subb a,_putstring_PARM_2
; Peephole 108 removed ljmp by inverse jump logic
jnc 00105$
00109$:
C$2x16lcd.h$98$2$2 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 98
mov a,r2
add a,_putstring_PARM_3
mov dpl,a
; Peephole 180 changed mov to clr
clr a
addc a,(_putstring_PARM_3 + 1)
mov dph,a
mov b,(_putstring_PARM_3 + 2)
lcall __gptrget
mov r3,a
mov dpl,r3
push ar2
lcall _putch
pop ar2
C$2x16lcd.h$96$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 96
inc r2
; Peephole 132 changed ljmp to sjmp
sjmp 00101$
00105$:
C$2x16lcd.h$100$1$1 ==.
XG$putstring$0$0 ==.
ret
;------------------------------------------------------------
;Allocation info for local variables in function 'clearlcd'
;------------------------------------------------------------
G$clearlcd$0$0 ==.
C$2x16lcd.h$102$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 102
; -----------------------------------------
; function clearlcd
; -----------------------------------------
_clearlcd:
C$2x16lcd.h$104$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 104
mov _gotoxy_PARM_2,#0x01
mov dpl,#0x01
lcall _gotoxy
C$2x16lcd.h$105$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 105
mov _putstring_PARM_3,#__str_0
mov (_putstring_PARM_3 + 1),#(__str_0 >> 8)
mov (_putstring_PARM_3 + 2),#0x02
mov _putstring_PARM_2,#0x10
mov dpl,#0x00
lcall _putstring
C$2x16lcd.h$106$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 106
mov _gotoxy_PARM_2,#0x02
mov dpl,#0x01
lcall _gotoxy
C$2x16lcd.h$107$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 107
mov _putstring_PARM_3,#__str_1
mov (_putstring_PARM_3 + 1),#(__str_1 >> 8)
mov (_putstring_PARM_3 + 2),#0x02
mov _putstring_PARM_2,#0x10
mov dpl,#0x00
lcall _putstring
00101$:
C$2x16lcd.h$108$1$1 ==.
XG$clearlcd$0$0 ==.
ret
;------------------------------------------------------------
;Allocation info for local variables in function 'puts'
;------------------------------------------------------------
;str Allocated to registers r2 r3 r4
G$puts$0$0 ==.
C$2x16lcd.h$121$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 121
; -----------------------------------------
; function puts
; -----------------------------------------
_puts:
C$2x16lcd.h$0$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 0
mov r2,dpl
mov r3,dph
mov r4,b
C$2x16lcd.h$123$1$1 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 123
00101$:
mov dpl,r2
mov dph,r3
mov b,r4
lcall __gptrget
mov r5,a
inc dptr
mov r2,dpl
mov r3,dph
mov a,r5
; Peephole 110 removed ljmp by inverse jump logic
jz 00104$
00108$:
C$2x16lcd.h$125$2$2 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 125
mov dpl,r5
push ar2
push ar3
push ar4
lcall _putch
pop ar4
pop ar3
pop ar2
C$2x16lcd.h$126$2$2 ==.
; D:\Shekhar\Projects\EAR-1022\System/2x16lcd\2x16lcd.h 126
; Peephole 132 changed ljmp to sjmp
sjmp 00101$
00104$:
C$2x16lcd.h$128$1$1 ==.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -