📄 xuanya_car.s
字号:
.dbline 275
; }
cpi R24,2
ldi R30,8
cpc R25,R30
brne L48
.dbline 276
; }
.dbline 276
ldi R24,2000
ldi R25,7
sts _delay_time2+1,R25
sts _delay_time2,R24
.dbline 276
.dbline 277
; }
.dbline 279
; }
; }
L47:
L48:
.dbline -2
.dbline 281
; }
; }
L46:
.dbline 0 ; func end
ret
.dbend
.area eeprom(rom, con, rel)
.dbfile e:/ICC/include/sl3010.c
_sound::
.byte 42,42
.byte 'J,42
.byte 42,'J
.byte 42,44
.byte 40,41
.byte 'J,'J
.byte 43,43
.byte 43,43
.byte 43,42
.byte 42,42
.byte 42,41
.byte 41,40
.byte 'I,'L
.byte 42,42
.byte 'J,42
.byte 42,'J
.byte 42,44
.byte 40,41
.byte 'J,'J
.byte 43,43
.byte 43,43
.byte 43,42
.byte 42,42
.byte 44,44
.byte 43,41
.byte 'H,'H
.byte 0,0
.dbfile E:\icc\iccavr\sl3010\xuanya_car\xuanya_car.c
.dbsym e sound _sound A[54:54]c
.area data(ram, con, rel)
.dbfile E:\icc\iccavr\sl3010\xuanya_car\xuanya_car.c
.area lit(rom, con, rel)
_TONETABLE::
.word 64580
.word 64684
.word 64777
.word 64820
.word 64898
.word 64968
.word 65030
.word 65058
.word 65110
.word 65157
.word 65178
.word 65217
.word 65252
.word 65283
.word 65297
.dbsym e TONETABLE _TONETABLE A[30:15]ki
.area data(ram, con, rel)
.dbfile E:\icc\iccavr\sl3010\xuanya_car\xuanya_car.c
_sound_add::
.blkb 2
.area idata
.word 0
.area data(ram, con, rel)
.dbfile E:\icc\iccavr\sl3010\xuanya_car\xuanya_car.c
.dbsym e sound_add _sound_add i
_led_delayms::
.blkb 2
.area idata
.word 600
.area data(ram, con, rel)
.dbfile E:\icc\iccavr\sl3010\xuanya_car\xuanya_car.c
.dbsym e led_delayms _led_delayms i
.area lit(rom, con, rel)
_led_data::
.byte 254,253
.byte 251,247
.byte 239,223
.byte 191,127
.byte 191,223
.byte 239,247
.byte 251,253
.byte 254,253
.byte 251,247
.byte 239,223
.byte 191,127
.byte 191,223
.byte 239,247
.byte 251,253
.byte 0,24
.byte 60,126
.byte 255,126
.byte 60,24
.byte 0,24
.byte 60,126
.byte 255,126
.byte 60,24
.byte 248,241
.byte 227,199
.byte 143,31
.byte 143,199
.byte 227,241
.byte 248,241
.byte 227,199
.byte 143,31
.byte 143,199
.byte 227,241
.byte 254,252
.byte 248,240
.byte 224,192
.byte 128,0
.byte 128,192
.byte 224,240
.byte 248,252
.byte 254,252
.byte 248,240
.byte 224,192
.byte 128,0
.byte 128,192
.byte 224,240
.byte 248,252
.byte 255,231
.byte 219,189
.byte 126,189
.byte 219,231
.byte 255,231
.byte 219,189
.byte 126,189
.byte 219,231
.byte 255,0
.byte 255,0
.byte 255,0
.byte 255,0
.byte 10,10
.dbsym e led_data _led_data A[118:118]kc
_sound_back::
.byte 42,44
.byte 'M,'M
.byte 'M,42
.byte 44,'I
.byte 'I,'I
.byte 42,44
.byte 45,'O
.byte 45,'L
.byte 29,24
.byte 42,'I
.byte 'I,'I
.byte 0,0
.dbsym e sound_back _sound_back A[24:24]kc
.area text(rom, con, rel)
.dbfile E:\icc\iccavr\sl3010\xuanya_car\xuanya_car.c
.dbfunc e watchdog_init _watchdog_init fV
.even
_watchdog_init::
.dbline -1
.dbline 71
.dbline 72
wdr
.dbline 73
ldi R24,14
out 0x21,R24
.dbline -2
.dbline 74
L63:
.dbline 0 ; func end
ret
.dbend
.dbfunc e timer0_init _timer0_init fV
.even
_timer0_init::
.dbline -1
.dbline 80
.dbline 81
clr R2
out 0x33,R2
.dbline 82
ldi R24,61
out 0x32,R24
.dbline 83
ldi R24,5
out 0x33,R24
.dbline -2
.dbline 84
L64:
.dbline 0 ; func end
ret
.dbend
.area vector(rom, abs)
.org 14
rjmp _timer0_ovf_isr
.area text(rom, con, rel)
.dbfile E:\icc\iccavr\sl3010\xuanya_car\xuanya_car.c
.dbfunc e timer0_ovf_isr _timer0_ovf_isr fV
.even
_timer0_ovf_isr::
rcall push_lset
rcall push_gset1
.dbline -1
.dbline 88
.dbline 89
ldi R24,61
out 0x32,R24
.dbline 90
lds R24,_t0_times
subi R24,255 ; addi 1
sts _t0_times,R24
.dbline 91
in R24,0x16
andi R24,15
sts _remote_in,R24
.dbline 92
mov R20,R24
clr R21
cpi R20,0
cpc R20,R21
breq L69
X7:
cpi R20,1
ldi R30,0
cpc R21,R30
breq L73
cpi R20,2
ldi R30,0
cpc R21,R30
breq L71
cpi R20,4
ldi R30,0
cpc R21,R30
breq L70
cpi R20,8
ldi R30,0
cpc R21,R30
breq L72
rjmp L66
X8:
.dbline 93
L69:
.dbline 95
clr R2
clr R3
sts _rst_time+1,R3
sts _rst_time,R2
.dbline 96
rjmp L67
L70:
.dbline 98
clr R2
clr R3
sts _rst_time+1,R3
sts _rst_time,R2
.dbline 99
rjmp L67
L71:
.dbline 101
clr R2
clr R3
sts _rst_time+1,R3
sts _rst_time,R2
.dbline 102
rjmp L67
L72:
.dbline 104
lds R24,_rst_time
lds R25,_rst_time+1
adiw R24,1
sts _rst_time+1,R25
sts _rst_time,R24
.dbline 105
rjmp L67
L73:
.dbline 107
clr R2
clr R3
sts _rst_time+1,R3
sts _rst_time,R2
.dbline 108
L66:
L67:
.dbline 110
ldi R24,400
ldi R25,1
lds R2,_rst_time
lds R3,_rst_time+1
cp R24,R2
cpc R25,R3
brsh L74
.dbline 111
.dbline 112
ldi R24,255
out 0x1b,R24
.dbline 113
rcall _watchdog_init
L76:
.dbline 114
L77:
.dbline 114
rjmp L76
X9:
.dbline 115
L74:
.dbline 117
lds R24,_gzsl
cpi R24,136
brne L79
.dbline 118
.dbline 119
lds R24,_t0_times
cpi R24,10
brne L81
.dbline 120
.dbline 121
lds R24,_timers
subi R24,255 ; addi 1
sts _timers,R24
.dbline 122
clr R2
sts _t0_times,R2
.dbline 123
ldi R24,<_led_data
ldi R25,>_led_data
lds R2,_timers
clr R3
add R2,R24
adc R3,R25
mov R30,R2
mov R31,R3
lpm
sts _pa,R0
.dbline 124
mov R24,R0
cpi R24,10
brne L83
.dbline 124
.dbline 124
clr R2
sts _timers,R2
.dbline 124
L83:
.dbline 125
lds R2,_pa
out 0x1b,R2
.dbline 126
L81:
.dbline 127
L79:
.dbline 128
lds R24,_gzsl
cpi R24,68
breq X10
rjmp L85
X10:
.dbline 129
.dbline 130
rcall _sw_touch
.dbline 131
in R24,0x13
andi R24,224
sts _pc,R24
.dbline 132
cpi R24,224
brne L87
.dbline 133
.dbline 134
rcall _stop
.dbline 135
clr R2
sts _t0_times,R2
.dbline 135
ldi R24,34
sts _timers,R24
.dbline 136
ldi R24,<_sound
ldi R25,>_sound
lds R16,_sound_add
lds R17,_sound_add+1
add R16,R24
adc R17,R25
rcall _EEPROMread
sts _temp1,R16
.dbline 137
L87:
.dbline 138
lds R24,_pc
cpi R24,64
breq L94
cpi R24,128
breq L94
cpi R24,32
breq L94
cpi R24,192
breq L94
cpi R24,96
brne L89
L94:
.dbline 139
.dbline 140
ldi R24,85
sts _timers,R24
.dbline 141
clr R2
sts _t0_times,R2
.dbline 142
L89:
.dbline 143
lds R24,_timers
cpi R24,85
brne L95
.dbline 144
.dbline 145
lds R24,_t0_times
cpi R24,16
brsh L97
.dbline 146
.dbline 147
rcall _backward
.dbline 148
ldi R24,<_sound_back
ldi R25,>_sound_back
lds R2,_sound_add
lds R3,_sound_add+1
add R2,R24
adc R3,R25
mov R30,R2
mov R31,R3
lpm
sts _temp1,R0
.dbline 149
L97:
.dbline 150
ldi R24,16
lds R2,_t0_times
cp R24,R2
brsh L99
mov R24,R2
cpi R24,24
brsh L99
.dbline 151
.dbline 152
rcall _turn_left
.dbline 153
ldi R24,<_sound_back
ldi R25,>_sound_back
lds R2,_sound_add
lds R3,_sound_add+1
add R2,R24
adc R3,R25
mov R30,R2
mov R31,R3
lpm
sts _temp1,R0
.dbline 154
L99:
.dbline 155
lds R24,_t0_times
cpi R24,24
brne L101
.dbline 156
.dbline 157
clr R2
sts _timers,R2
.dbline 158
sts _t0_times,R2
.dbline 159
L101:
.dbline 160
L95:
.dbline 161
lds R24,_timers
cpi R24,85
breq L103
cpi R24,34
breq L103
.dbline 162
.dbline 163
rcall _forward
.dbline 164
clr R2
sts _temp1,R2
.dbline 165
L103:
.dbline 166
L85:
.dbline -2
.dbline 167
L65:
rcall pop_gset1
rcall pop_lset
.dbline 0 ; func end
reti
.dbend
.dbfunc e stop_timer0 _stop_timer0 fV
.even
_stop_timer0::
.dbline -1
.dbline 170
.dbline 171
cli
.dbline 172
clr R2
out 0x33,R2
.dbline 173
out 0x35,R2
.dbline 174
out 0x3b,R2
.dbline 175
out 0x39,R2
.dbline 176
sei
.dbline -2
.dbline 177
L105:
.dbline 0 ; func end
ret
.dbend
.area vector(rom, abs)
.org 12
rjmp _timer1_ovf_isr
.area text(rom, con, rel)
.dbfile E:\icc\iccavr\sl3010\xuanya_car\xuanya_car.c
.dbfunc e timer1_ovf_isr _timer1_ovf_isr fV
.even
_timer1_ovf_isr::
st -y,R2
st -y,R3
st -y,R24
in R2,0x3f
st -y,R2
.dbline -1
.dbline 181
.dbline 182
.dbline 183
lds R2,_toneconst
lds R3,_toneconst+1
sts 76+1,R3
sts 76,R2
.dbline 184
ldi R24,1
in R2,0x15
eor R2,R24
out 0x15,R2
.dbline 185
.dbline -2
.dbline 186
L106:
ld R2,y+
out 0x3f,R2
ld R24,y+
ld R3,y+
ld R2,y+
.dbline 0 ; func end
reti
.dbend
.dbfunc e xuanya_car _xuanya_car fV
.even
_xuanya_car::
.dbline -1
.dbline 189
.dbline 190
rcall _port_init
.dbline 192
ldi R24,32
sts _work_status,R24
.dbline 194
ldi R24,15
out 0x1b,R24
.dbline 196
ldi R24,136
sts _gzsl,R24
.dbline 196
clr R2
sts _timers,R2
.dbline 196
sts _t0_times,R2
.dbline 197
cli
.dbline 198
rcall _timer0_init
.dbline 200
clr R2
out 0x35,R2
.dbline 201
out 0x3b,R2
.dbline 202
in R24,0x39
ori R24,2
out 0x39,R24
.dbline 203
sei
.dbline 205
rcall _mic_startup
.dbline 207
ldi R24,68
sts _gzsl,R24
.dbline 207
clr R2
sts _t0_times,R2
.dbline 208
out 0x2f,R2
.dbline 209
ldi R24,2
out 0x2e,R24
L108:
.dbline 211
clr R2
sts _temp1,R2
sts _temp,R2
.dbline 212
clr R3
sts _sound_add+1,R3
sts _sound_add,R2
rjmp L110
L109:
.dbline 214
.dbline 215
lds R2,_temp1
sts _temp,R2
.dbline 216
mov R24,R2
andi R24,15
sts _temp,R24
.dbline 217
mov R2,R24
tst R24
breq L112
.dbline 218
.dbline 219
in R24,0x39
ori R24,128
out 0x39,R24
.dbline 220
mov R24,R2
subi R24,1
sts _temp,R24
.dbline 221
ldi R24,<_TONETABLE
ldi R25,>_TONETABLE
lds R16,_temp
clr R17
lsl R16
rol R17
add R16,R24
adc R17,R25
rcall lpm16
sts _toneconst+1,R17
sts _toneconst,R16
.dbline 222
mov R2,R16
mov R3,R17
sts 76+1,R3
sts 76,R2
.dbline 223
L112:
.dbline 224
lds R2,_temp1
sts _temp,R2
.dbline 225
mov R24,R2
swap R24
andi R24,#0x0F
sts _temp,R24
.dbline 226
andi R24,15
sts _temp,R24
.dbline 227
mov R18,R24
clr R19
ldi R16,129
ldi R17,0
rcall mpy16s
rcall _delay_ms
.dbline 228
in R24,0x39
andi R24,127
out 0x39,R24
.dbline 229
lds R24,_sound_add
lds R25,_sound_add+1
adiw R24,1
sts _sound_add+1,R25
sts _sound_add,R24
.dbline 230
L110:
.dbline 213
lds R2,_temp1
tst R2
breq X12
rjmp L109
X12:
.dbline 231
rjmp L108
X11:
.dbline -2
L107:
.dbline 0 ; func end
ret
.dbend
.dbfunc e main _main fV
.even
_main::
.dbline -1
.dbline 236
.dbline 237
.dbline -2
.dbline 238
L114:
.dbline 0 ; func end
rjmp _xuanya_car
.dbend
.area bss(ram, con, rel)
.dbfile E:\icc\iccavr\sl3010\xuanya_car\xuanya_car.c
_sound_2::
.blkb 1
.dbsym e sound_2 _sound_2 c
_sound_1::
.blkb 1
.dbsym e sound_1 _sound_1 c
_timers::
.blkb 1
.dbsym e timers _timers c
_t0_times::
.blkb 1
.dbsym e t0_times _t0_times c
_gzsl::
.blkb 1
.dbsym e gzsl _gzsl c
_remote_select::
.blkb 1
.dbsym e remote_select _remote_select c
_pd_select::
.blkb 1
.dbsym e pd_select _pd_select c
_cds::
.blkb 1
.dbsym e cds _cds c
_cny_times::
.blkb 1
.dbsym e cny_times _cny_times c
_cny_in::
.blkb 1
.dbsym e cny_in _cny_in c
_pd::
.blkb 1
.dbsym e pd _pd c
_pc::
.blkb 1
.dbsym e pc _pc c
_pb::
.blkb 1
.dbsym e pb _pb c
_pa::
.blkb 1
.dbsym e pa _pa c
_temp1::
.blkb 1
.dbsym e temp1 _temp1 c
_temp::
.blkb 1
.dbsym e temp _temp c
_rst_time::
.blkb 2
.dbsym e rst_time _rst_time i
_toneconst::
.blkb 2
.dbsym e toneconst _toneconst i
_delay_time2::
.blkb 2
.dbsym e delay_time2 _delay_time2 i
_delay_time1::
.blkb 2
.dbsym e delay_time1 _delay_time1 i
_mic_in::
.blkb 1
.dbfile e:/ICC/include/sl3010.c
.dbsym e mic_in _mic_in c
_remote_in::
.blkb 1
.dbfile E:\icc\iccavr\sl3010\xuanya_car\xuanya_car.c
.dbsym e remote_in _remote_in c
_sw_in::
.blkb 1
.dbfile e:/ICC/include/sl3010.c
.dbsym e sw_in _sw_in c
_work_status::
.blkb 1
.dbsym e work_status _work_status c
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -