dscdec.lst

来自「MP3 整个 SDK」· LST 代码 · 共 545 行 · 第 1/3 页

LST
545
字号
    122    000055          
    123    000055          /**********************************
    124    000055          *function name : void PicViewDSPISR(void)
    125    000055          * parament     : void
    126    000055          *
    127    000055          *
    128    000055          * 
    129    000055          *
    130    000055          ***********************************/
    131    000055          PicViewDSPISR:
    132    000055 DB26                    in    a,(26h)                    //读
                                                   取中断状态寄存器
    133    000057 CB47                    bit      0,a                     //读
 取中断类型
    134    000059 CA....                  jp       z,LWRD PicViewDSPISR_End
    135    00005C F601                    or       01h
    136    00005E D326                    out      (26h),a                 
    137    000060 DB35                    in     a,(35h)
    138    000062 DB35                    in     a,(35h)
    139    000064 FEF0                 cp     0f0h
    140    000066 2028                 jr     nz,CompareNext1Cmd     // init th
                                                  e parament order
    141    000068                      
    142    000068 CD....               call   LWRD DscSendParamentTodsp  // get
                                                                           the r
                                                                          egion 
                                                                          window
                                                                           setin
                                                                          g
    143    00006B 110000               ld    de,0
    144    00006E 010000               ld    bc,0
    145    000071 2A....               ld   hl,(LWRD PicFileHandle)
    146    000074 E5                   push  hl
    147    000075 210000               ld   hl,0//3                       // se
                                                ek fast 
    148    000078 E5                   push hl
    149    000079                      
    150    000079                      mFS_FSeek
    150.1  000079                  local   NormalSeek
    150.2  000079                  //ld      hl,API_FS_FSeek 
    150.3  000079                  
    150.4  000079 210000           ld      hl,0000h
    150.5  00007C 39               add     hl,sp
    150.6  00007D 7E               ld      a,(hl)
    150.7  00007E          
    150.8  00007E FE03             cp      03 
    150.9  000080 218C10           ld      hl,API_FS_FSeek
    150.10 000083 2003             jr      nz,NormalSeek
    150.11 000085 218F12           ld      hl,API_FS_FFSeek
    150.12 000088          
    150.13 000088          NormalSeek:      
    150.14 000088 D7               rst     RSTBankAPI
    150.15 000089                  endm
    151    000089 E1                   pop   hl
    152    00008A E1                   pop   hl
    153    00008B                    
    154    00008B                    
    155    00008B 3EE0                 ld    a,0e0h
    156    00008D D335                 out   (35h),a  
    157    00008F C9                   ret
    158    000090          CompareNext1Cmd:
    159    000090 FEF1                 cp    0f1h
    160    000092 202E                 jr    nz,CompareNext2Cmd         // send
                                                  the jpeg data to dsp order
    161    000094                       
    162    000094 11....               LD    DE,  LWRD JpegDataBuf // bitsream 
                                                   buf
    163    000097 0E01                 LD    C,1
    164    000099 2A....               LD    HL,(LWRD PicFileHandle)     // fil
                                                 e handle 
    165    00009C E5                   PUSH  HL                           // se
 nd the parament
    166    00009D                      mFS_FRead                          // ca
 ll the fread function in file system
    166.1  00009D 218C12           ld      hl,API_FS_FRead
    166.2  0000A0 D7               rst     RSTBankAPI
    166.3  0000A1                  endm
    167    0000A1 E1                   pop   hl                           // ca
 llback the stack
    168    0000A2                     
    169    0000A2 E5                   push  hl                           // sa
 ve the hl
    170    0000A3 DDE5                 push  ix                           // sa
 ve the ix
    171    0000A5 DB05                 in   a,(05h)                        
    172    0000A7 32....               ld   (LWRD SystemBakIoReg5),a      // sa
                                                                   ve the  reg5
    173    0000AA 3E34                 ld   a,34h
    174    0000AC D305                 out  (05h),a
    175    0000AE DD21....             ld    ix, LWRD  Dsc_SendJpegDataDmaTable
                                                    // set the dma table for sen
                                                  ding to dsp
    176    0000B2 CD....               call LWRD DmaDriver                     
   // call the driver
    177    0000B5                      
    178    0000B5 3A....               ld   a,(LWRD SystemBakIoReg5)           
                                                  // restore the reg5
    179    0000B8 D305                 out  (05h),a
    180    0000BA DDE1                 pop    ix                               
    // restore the ix
    181    0000BC E1                   pop    hl                               
    // restore  the hl 
    182    0000BD 3EE1                 ld    a,0e1h                            
                                                   
    183    0000BF D335                 out   (35h),a   
    184    0000C1 C9                   ret
    185    0000C2          CompareNext2Cmd:
    186    0000C2 FEF2                 cp   0f2h
    187    0000C4 2026                 jr   nz,CompareNext3Cmd      // get the 
                                                Pixel data order 
    188    0000C6 DB05                  in     a,(05)
    189    0000C8 32....                ld   (LWRD SystemBakIoReg5),a      // s
                                                                    ave the  reg
                                                                    5    
    190    0000CB                     
    191    0000CB                     
    192    0000CB 3E34                  ld    a,34h
    193    0000CD D305                  out   (05h),a
    194    0000CF 3A....                ld      a,(LWRD JpegRegion+2)
    195    0000D2 0600                  ld      b,0
    196    0000D4 CB27                  sla     a
    197    0000D6 4F                    ld      c,a
    198    0000D7 CB10                  rl      b
    199    0000D9 210C42                ld      hl,DscPixeleBufInDsp
    200    0000DC                       
    201    0000DC 110080                ld      de,8000h
    202    0000DF CD....                call    LWRD Dscdec_display;           
           // call the displaydriver
    203    0000E2 3A....               ld         a,(LWRD SystemBakIoReg5)     
                                                              // restore the reg
                                                     5
    204    0000E5 D305                 out        (05h),a
    205    0000E7                  
    206    0000E7          //#endif              
    207    0000E7          CompareCmd2End:           
    208    0000E7                     
    209    0000E7                     
    210    0000E7 3EE2                  ld     a,0e2h
    211    0000E9 D335                  out    (35h),a
    212    0000EB                      
    213    0000EB                      
    214    0000EB                      
    215    0000EB C9                   ret 
    216    0000EC          CompareNext3Cmd:                         // one  jpe
 g or bmp file decoding over 
    217    0000EC FEF3                 cp   0f3h
    218    0000EE 2008                 jr   nz,CompareNext4Cmd
    219    0000F0 32....               ld   (LWRD PicViewOrder),a
    220    0000F3 3EE3                 ld     a,0e3h
    221    0000F5 D335                 out   (35h),a
    222    0000F7                      
    223    0000F7 C9                    ret            
    224    0000F8          CompareNext4Cmd:
    225    0000F8 FEF5                 cp  0f5h
    226    0000FA 2024                 jr   nz,CompareNext5Cmd
    227    0000FC 32....                ld   (lWRD PicViewOrder),a
    228    0000FF DB05                  in     a,(05)
    229    000101 32....                ld   (LWRD SystemBakIoReg5),a      // s
                                                                    ave the  reg
                                                                    5    
    230    000104 3E34                  ld    a,34h
    231    000106 D305                  out    (05h),a
    232    000108 210640                ld     hl, JpegRegionInDsp        
    233    00010B 11....                ld     de,LWRD JpegRegion
    234    00010E 010400                ld     bc,4
    235    000111 EDB0                  ldir 
    236    000113 210B40                ld     hl,HDicVdic
    237    000116 7E                    ld     a,(hl)
    238    000117 32....                ld     (LWRD WindowModeH2V),a
    239    00011A 3A....                ld         a,(LWRD SystemBakIoReg5)    
                                                                // restore the r
                                                      eg5
    240    00011D D305                  out        (05h),a
    241    00011F C9                    ret 
    242    000120          CompareNext5Cmd:
    243    000120 FEFF                 cp   0ffh              // the file forma
                                             t don'tspport
    244    000122 2008                 jr   nz,PicViewDSPISR_End 
    245    000124 32....               ld   (LWRD PicViewOrder),a
    246    000127 3EEF                 ld     a,0efh
    247    000129 D335                 out   (35h),a
    248    00012B C9                   ret 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?