ui_followcompare.lst

来自「炬力方案176*132软件源码,适用于AK1025」· LST 代码 · 共 658 行 · 第 1/3 页

LST
658
字号
    200                      strcat(temp_buffer,":");
    201                      itoa_2(time.minute, & temp_buffer[3]);
    202                      strcat(temp_buffer,":");
    203                      itoa_2(time.second, & temp_buffer[6]);
    204                      ///-temp_buffer[5] = 0x00;
    205                      ui_show_d(temp_buffer,0);
   \   0156            ?0030:
    206                  }
    207                  else if (RePlayStatus == ComparePlay)//对比放时显示时间
   \   0156  FE06              CP      6
   \   0158  203F              JR      NZ,?0034
   \   015A            ?0033:
    208                  {
    209                      wavpSendCommand(MC_GETTIME, (int)& time);
   \   015A  210000            LD      HL,0
   \   015D  39                ADD     HL,SP
   \   015E  4D                LD      C,L
   \   015F  44                LD      B,H
   \   0160  1E80              LD      E,128
   \   0162  3E00              LD      A,BYTE3 wavpSendCommand
   \   0164  210000            LD      HL,LWRD wavpSendCommand
   \   0167            ?0053:
   \   0167  CD0000            CALL    LWRD ?BANK_CALL_DIRECT_L08
    210                      itoa_2(time.hour, temp_buffer);
   \   016A  010000            LD      BC,temp_buffer
   \   016D  DD5EF8            LD      E,(IX-8)
   \   0170  CDDD01            CALL    LWRD ?0058
    211                      strcat(temp_buffer,":");
    212                      itoa_2(time.minute, & temp_buffer[3]);
   \   0173  010300            LD      BC,temp_buffer+3
   \   0176  DD5EF9            LD      E,(IX-7)
   \   0179  CDDD01            CALL    LWRD ?0058
    213                      strcat(temp_buffer,":");
    214                      itoa_2(time.second, & temp_buffer[6]);
   \   017C  010600            LD      BC,temp_buffer+6
   \   017F  DD5EFA            LD      E,(IX-6)
   \   0182  3E00              LD      A,BYTE3 itoa_2
   \   0184  210000            LD      HL,LWRD itoa_2
   \   0187  CD0000            CALL    LWRD ?BANK_CALL_DIRECT_L08
    215                      ui_show_d(temp_buffer,0);
   \   018A  0E00              LD      C,0
   \   018C  110000            LD      DE,temp_buffer
   \   018F  3E00              LD      A,BYTE3 ui_show_d
   \   0191  210000            LD      HL,LWRD ui_show_d
   \   0194  CD0000            CALL    LWRD ?BANK_CALL_DIRECT_L08
    216                  }
    217                  else//其他状态显示时间(都是MUSIC播放)
   \   0197  1829              JR      ?0038
   \   0199            ?0034:
    218                  {
    219                      Full_time_t time_buf;
    220                      if ( musicpSendCommand(MC_GETTIME, (int)& time_buf) )
   \   0199  210300            LD      HL,3
   \   019C  39                ADD     HL,SP
   \   019D  4D                LD      C,L
   \   019E  44                LD      B,H
   \   019F  1E80              LD      E,128
   \   01A1  CDE200            CALL    LWRD ?0056
   \   01A4  2C                INC     L
   \   01A5  2D                DEC     L
   \   01A6  2814              JR      Z,?0037
   \   01A8            ?0036:
    221                      {
    222                          g_music_vars.BreakPTDisTime.hour = time_buf.TimeHour;
   \   01A8  DD7EFF            LD      A,(IX-1)
   \   01AB  324D00            LD      (g_music_vars+77),A
    223                          g_music_vars.BreakPTDisTime.minute = time_buf.TimeMinute;
   \   01AE  DD7EFE            LD      A,(IX-2)
   \   01B1  324E00            LD      (g_music_vars+78),A
    224                          g_music_vars.BreakPTDisTime.second = time_buf.TimeSecond;
   \   01B4  DD7EFD            LD      A,(IX-3)
   \   01B7  324F00            LD      (g_music_vars+79),A
    225                      }
    226                      else
   \   01BA  1806              JR      ?0038
   \   01BC            ?0037:
    227                      {
    228                          //如未能正确取得时间,则先不刷新显示
    229                          UpDisplayFlag &= clr_musiccurrenttime;
   \   01BC  210000            LD      HL,UpDisplayFlag
   \   01BF  23                INC     HL
   \   01C0  CB8E              RES     1,(HL)
   \   01C2            ?0038:
   \   01C2            ?0035:
   \   01C2            ?0032:
   \   01C2            ?0028:
    230                      }
    231          
    232                  }
    233                 // UpDisplayFlag ^= up_musiccurrenttime;//清除刷新标志
    234          
    235              }
    236          
    237          
    238              //刷新比特率
    239              if (UpDisplayFlag & up_musicbitrate)
   \   01C2  2A0000            LD      HL,(UpDisplayFlag)
   \   01C5  CB6C              BIT     5,H
   \   01C7  2811              JR      Z,?0042
   \   01C9            ?0039:
    240              {
    241                  //audio_format_t pFormat;
    242                  //region_t region_b = {POSITION_B, 0, 21, 16};
    243          
    244                  if ((RePlayStatus == FollowRec) || (RePlayStatus == ComparePlay))
   \   01C9  3A0000            LD      A,(RePlayStatus)
   \   01CC  FE04              CP      4
   \   01CE  2804              JR      Z,?0043
   \   01D0  FE06              CP      6
   \   01D2  2006              JR      NZ,?0042
   \   01D4            ?0043:
   \   01D4            ?0044:
   \   01D4            ?0041:
    245                  {
    246          //            Show_MusicType();//先显示音乐类型图标
    247           
    248                       UpDisplayFlag = UpDisplayFlag & clr_musicbitrate;//清除刷新标志
   \   01D4  210000            LD      HL,UpDisplayFlag
   \   01D7  23                INC     HL
   \   01D8  CBAE              RES     5,(HL)
   \   01DA            ?0042:
   \   01DA            ?0040:
    249                  }
    250              }
    251          
    252              return;
    253          }
   \   01DA  C30000            JP      LWRD ?BANK_LEAVE_DIRECT_L08
   \   01DD            ?0058:
   \   01DD  3E00              LD      A,BYTE3 itoa_2
   \   01DF  210000            LD      HL,LWRD itoa_2
   \   01E2  CD0000            CALL    LWRD ?BANK_CALL_DIRECT_L08
   \   01E5  110000            LD      DE,?0031
   \   01E8  210000            LD      HL,temp_buffer
   \   01EB  CD0000            CALL    LWRD ?STRCAT_L11
   \   01EE  C9                RET
   \   01EF            OpenMusic:
    254          /*
    255          ********************************************************************************
    256          *             void OpenMusic( void )
    257          *
    258          * Description :
    259          *
    260          * Arguments   : void
    261          *
    262          * Returns     : void
    263          *
    264          * Notes       :
    265          *
    266          ********************************************************************************
    267          */
    268          void OpenMusic( void )
    269          {
   \   01EF  C5                PUSH    BC
   \   01F0  D5                PUSH    DE
    270              g_music_vars.MusicOpenMod = ABPlay_open;
   \   01F1  3E02              LD      A,2
   \   01F3  320600            LD      (g_music_vars+6),A
    271              musicpSendCommand(MC_OPEN, (int)& g_Openparam);
   \   01F6  010000            LD      BC,g_Openparam
   \   01F9  1E01              LD      E,1
   \   01FB  CDD600            CALL    LWRD ?0055
    272              musicpSendCommand(MC_LOAD, NULL);
   \   01FE  1E03              LD      E,3
   \   0200  CDD600            CALL    LWRD ?0055
    273              musicpSendCommand(MC_CALTIME, NULL);
   \   0203  1E13              LD      E,19
   \   0205  CDE200            CALL    LWRD ?0056
    274              musicpSendCommand(MC_SETPOWERCOUNT, 5); //set power out level count=2^4=16   
   \   0208  010500            LD      BC,5
   \   020B  1E59              LD      E,89
   \   020D  CDD600            CALL    LWRD ?0055
    275              musicpSendCommand(MC_RESTORE, NULL);
   \   0210  1E45              LD      E,69
   \   0212  CDE200            CALL    LWRD ?0056
    276              musicpSendCommand(MC_PLAY, g_music_vars.MusicOpenMod);
   \   0215  ED4B0600          LD      BC,(g_music_vars+6)
   \   0219  0600              LD      B,0
   \   021B  1E04              LD      E,4
   \   021D  CDE200            CALL    LWRD ?0056
    277          }
   \   0220  D1                POP     DE
   \   0221  C1                POP     BC
   \   0222  C30000            JP      LWRD ?BANK_FAST_LEAVE_L08
   \   0000                    RSEG    CSTR
   \   0000            ?0031:
   \   0000  3A                DEFB    ':'
   \   0001  00                DEFB    0
   \   0000                    RSEG    UDATA0
   \   0000            ReturnNotInit:
   \   0001                    DEFS    1
   \   0001            Replaytimes_CNT:
   \   0002                    DEFS    1
   \   0002            TimeRateData_sav:
   \   0008                    DEFS    6
   \   0008            ABPointTimeSize:
   \   000A                    DEFS    2
   \   0000                    RSEG    APC_UI_FC
   \   0000            NUM_PIC1:
   \   0000  A500              DEFW    165
   \   0002  A600              DEFW    166
   \   0004  A700              DEFW    167
   \   0006  A800              DEFW    168
   \   0008  A900              DEFW    169
   \   000A  AA00              DEFW    170
   \   000C  AB00              DEFW    171
   \   000E  AC00              DEFW    172
   \   0010  AD00              DEFW    173
   \   0012  AE00              DEFW    174
   \   0014                    END

Errors: none
Warnings: none
Code size: 549
Constant size: 22
Static variable size: Data(10) Iram(0)

⌨️ 快捷键说明

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