dscdec.lst
来自「MP3 整个 SDK」· LST 代码 · 共 545 行 · 第 1/3 页
LST
545 行
249 00012C
250 00012C
251 00012C
252 00012C PicViewDSPISR_End:
253 00012C FED0 cp 0d0h
254 00012E 2069 jr nz,OverEndTheIsr
255 000130 210A40 ld hl, FileSeekPositon
256 000133 DB05 in a,(05h)
257 000135 32.... ld (LWRD SystemBakIoReg5),a // sa
ve the reg5
258 000138 3E34 ld a,34h
259 00013A D305 out (05h),a
260 00013C 7E ld a,(hl)
261 00013D 5F ld e,a
262 00013E 3E35 ld a,35h
263 000140 D305 out (05h),a
264 000142 7E ld a,(hl)
265 000143 57 ld d,a
266 000144 3E36 ld a,36h
267 000146 D305 out (05h),a
268 000148 7E ld a,(hl)
269 000149 4F ld c,a
270 00014A // sectio
n low word
271 00014A 0600 ld b,0 // secti
on high word
272 00014C 3A.... ld a,(LWRD SystemBakIoReg5)
// restore the reg5
273 00014F D305 out (05h),a
274 000151
275 000151 2A.... ld hl,(LWRD PicFileHandle)
276 000154 E5 push hl
277 000155 210000 ld hl,0//3 // se
ek fast
278 000158 E5 push hl
279 000159
280 000159 mFS_FSeek
280.1 000159 local NormalSeek
280.2 000159 //ld hl,API_FS_FSeek
280.3 000159
280.4 000159 210000 ld hl,0000h
280.5 00015C 39 add hl,sp
280.6 00015D 7E ld a,(hl)
280.7 00015E
280.8 00015E FE03 cp 03
280.9 000160 218C10 ld hl,API_FS_FSeek
280.10 000163 2003 jr nz,NormalSeek
280.11 000165 218F12 ld hl,API_FS_FFSeek
280.12 000168
280.13 000168 NormalSeek:
280.14 000168 D7 rst RSTBankAPI
280.15 000169 endm
281 000169 E1 pop hl
282 00016A E1 pop hl
283 00016B
284 00016B 11.... LD DE, LWRD JpegDataBuf // bitsream
buf
285 00016E 0E01 LD C,1
286 000170 2A.... LD HL,(LWRD PicFileHandle) // fil
e handle
287 000173 E5 PUSH HL // se
nd the parament
288 000174 mFS_FRead // ca
ll the fread function in file system
288.1 000174 218C12 ld hl,API_FS_FRead
288.2 000177 D7 rst RSTBankAPI
288.3 000178 endm
289 000178 E1 pop hl // ca
llback the stack
290 000179
291 000179 E5 push hl // sa
ve the hl
292 00017A DDE5 push ix // sa
ve the ix
293 00017C DB05 in a,(05h)
294 00017E 32.... ld (LWRD SystemBakIoReg5),a // sa
ve the reg5
295 000181
296 000181 3E34 ld a,34h
297 000183 D305 out (05h),a
298 000185 DD21.... ld ix, LWRD Dsc_SendJpegDataDmaTable
// set the dma table for sen
ding to dsp
299 000189 CD.... call LWRD DmaDriver
// call the driver
300 00018C
301 00018C 3A.... ld a,(LWRD SystemBakIoReg5)
// restore the reg5
302 00018F D305 out (05h),a
303 000191 DDE1 pop ix
// restore the ix
304 000193 E1 pop hl
// restore the hl
305 000194
306 000194 3EC0 ld a,0c0h
307 000196 D335 out (35h),a
308 000198 C9 ret
309 000199 OverEndTheIsr:
310 000199 FEF8 cp 0f8h
311 00019B 2004 jr nz, ImageISrEnd
312 00019D 32.... ld (LWRD PicViewOrder),a
313 0001A0 C9 ret
314 0001A1 ImageISrEnd:
315 0001A1 FEF6 cp 0f6h
316 0001A3 2004 jr nz,RETURN
317 0001A5 3EE6 ld a,0e6h
318 0001A7 D335 out (35h),a
319 0001A9 RETURN:
320 0001A9 C9 ret
321 0001AA
322 0001AA
323 0001AA
324 0001AA
325 0001AA /**********************************
326 0001AA *function name : unsigned char DSCPicSetParament(DSC
DecInfor *DplyInfor,PicSaveInfor *Address )
327 0001AA * parament : void
328 0001AA *
329 0001AA *
330 0001AA *
331 0001AA *
332 0001AA ***********************************/
333 0001AA
334 0001AA DSCPicSetParament:
335 0001AA D5 push de
336 0001AB C5 push bc
337 0001AC ED53.... ld (LWRD PicViewParement),de //
save the pa
rament poin
ter
338 0001B0 /*
339 0001B0 ld h,b //
set the address
340 0001B0 ld l,c
341 0001B0 ld de,LWRD PicPixelInSdramBufPtr //
save the sdram address
342 0001B0 ld bc,5
343 0001B0 ldir;
344 0001B0 */
345 0001B0 C1 pop bc
346 0001B1 D1 pop de
347 0001B2
348 0001B2
349 0001B2 C9 ret
350 0001B3 /************************
351 0001B3 * DmaDriver
352 0001B3 * Parament : the source address
353 0001B3 * hl
354 0001B3 *************************/
355 0001B3 DmaDriver:
356 0001B3 DD7E00 ld a,(ix+0)
357 0001B6 // ld a,l
358 0001B6 D306 out (06h),a
359 0001B8 DD7E01 ld a,(ix+1)
360 0001BB // ld a,h
361 0001BB D307 out (07h),a
362 0001BD DD7E02 ld a,(ix+2)
363 0001C0 D308 out (08h),a
364 0001C2 DD7E03 ld a,(ix+3)
365 0001C5 D309 out (09h),a ;DMA1 Source Address
366 0001C7 DD7E04 ld a,(ix+4) ;????
367 0001CA D30A out (0ah),a ;DMA1 SRC Address Re
gister
368 0001CC DD7E05 ld a, (ix+5)
369 0001CF D30B out (0bh),a
370 0001D1 DD7E06 ld a, (ix+6)
371 0001D4 D30C out (0ch),a
372 0001D6 DD7E07 ld a, (ix+7)
373 0001D9 D30D out (0dh),a
374 0001DB DD7E08 ld a, (ix+8)
375 0001DE D30E out (0eh),a
376 0001E0 DD7E09 ld a,(ix+9)
377 0001E3 D30F out (0fh),a ;DMA DCT Address Re
gister
378 0001E5
379 0001E5 DD7E0A ld a,(ix+10)
380 0001E8 D310 out (10h),a
381 0001EA DD7E0B ld a,(ix+11)
382 0001ED D311 out (11h),a ;DSP Boot Length! 256
*3-1 byte 3是返回参数
endbitstream dsp上也要
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?