⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 systemvars.lis

📁 sypress psoc express 驱动led发光的应用程序.
💻 LIS
字号:
 0000                   cpu LMM
                        .module systemvars.c
                        .area text(rom, con, rel)
 0000                   .dbfile ./systemvars.c
 0000                   .dbfunc e pse_Buzzer_TransferFunction _pse_Buzzer_TransferFunction fV
 0000           ;    outputIndex -> X+0
 0000           _pse_Buzzer_TransferFunction::
 0000                   .dbline -1
 0000 10                push X
 0001 4F                mov X,SP
 0002 3801              add SP,1
 0004                   .dbline 15
 0004           ; //
 0004           ; // SystemVars.c
 0004           ; //
 0004           ; //   Updates system variables
 0004           ; #include "CMXSystem.h"
 0004           ; #include "CMXSystemFunction.h"
 0004           ; #include "SystemConst.h"
 0004           ; #include "FunctionParamDecl.h"
 0004           ; #include "SystemVars.h"
 0004           ; 
 0004           ; // system variable structure definition
 0004           ; SYSTEM_VARS_STRUC SystemVars;
 0004           ; 
 0004           ; void pse_Buzzer_TransferFunction()
 0004           ; {
 0004                   .dbline 16
 0004           ;       BYTE outputIndex = SystemVars.ReadOnlyVars.pse_Buzzer;
 0004 62D000            mov REG[0xd0],>_SystemVars
 0007 5100              mov A,[_SystemVars]
 0009 5400              mov [X+0],A
 000B                   .dbline 18
 000B           ; 
 000B           ;       if (SystemVars.ReadOnlyVars.pse_Light<3)
 000B 3C0103            cmp [_SystemVars+1],3
 000E D006              jnc L9
 0010           X0:
 0010                   .dbline 19
 0010           ;       {
 0010                   .dbline 20
 0010           ;               outputIndex = pse_Buzzer__Low;
 0010 560021            mov [X+0],33
 0013                   .dbline 21
 0013           ;       }
 0013 8004              xjmp L10
 0015           L9:
 0015                   .dbline 22
 0015           ;       else if (1)
 0015                   .dbline 23
 0015           ;       {
 0015                   .dbline 24
 0015           ;               outputIndex = pse_Buzzer__Off;
 0015 560000            mov [X+0],0
 0018                   .dbline 25
 0018           ;       }
 0018           L12:
 0018           L10:
 0018                   .dbline 27
 0018           ; 
 0018           ;       SystemVars.ReadOnlyVars.pse_Buzzer = outputIndex;
 0018 5200              mov A,[X+0]
 001A 62D000            mov REG[0xd0],>_SystemVars
 001D 5300              mov [_SystemVars],A
 001F                   .dbline -2
 001F                   .dbline 30
 001F           ; 
 001F           ; 
 001F           ; }
 001F           L8:
 001F 38FF              add SP,-1
 0021 20                pop X
 0022                   .dbline 0 ; func end
 0022 7F                ret
 0023                   .dbsym l outputIndex 0 c
 0023                   .dbend
 0023                   .dbfunc e pse_RLED_TransferFunction _pse_RLED_TransferFunction fV
 0023           ;    outputIndex -> X+0
 0023           _pse_RLED_TransferFunction::
 0023                   .dbline -1
 0023 10                push X
 0024 4F                mov X,SP
 0025 3801              add SP,1
 0027                   .dbline 33
 0027           ; 
 0027           ; void pse_RLED_TransferFunction()
 0027           ; {
 0027                   .dbline 34
 0027           ;       BYTE outputIndex = SystemVars.ReadOnlyVars.pse_RLED;
 0027 62D000            mov REG[0xd0],>_SystemVars
 002A 5102              mov A,[_SystemVars+2]
 002C 5400              mov [X+0],A
 002E                   .dbline 36
 002E           ; 
 002E           ;       if (SystemVars.ReadOnlyVars.pse_Light<8)
 002E 3C0108            cmp [_SystemVars+1],8
 0031 D006              jnc L16
 0033           X1:
 0033                   .dbline 37
 0033           ;       {
 0033                   .dbline 38
 0033           ;               outputIndex = pse_RLED__ON;
 0033 560001            mov [X+0],1
 0036                   .dbline 39
 0036           ;       }
 0036 8004              xjmp L17
 0038           L16:
 0038                   .dbline 40
 0038           ;       else if (1)
 0038                   .dbline 41
 0038           ;       {
 0038                   .dbline 42
 0038           ;               outputIndex = pse_RLED__OFF;
 0038 560000            mov [X+0],0
 003B                   .dbline 43
 003B           ;       }
 003B           L19:
 003B           L17:
 003B                   .dbline 45
 003B           ; 
 003B           ;       SystemVars.ReadOnlyVars.pse_RLED = outputIndex;
 003B 5200              mov A,[X+0]
 003D 62D000            mov REG[0xd0],>_SystemVars
 0040 5302              mov [_SystemVars+2],A
 0042                   .dbline -2
 0042                   .dbline 48
 0042           ; 
 0042           ; 
 0042           ; }
 0042           L14:
 0042 38FF              add SP,-1
 0044 20                pop X
 0045                   .dbline 0 ; func end
 0045 7F                ret
 0046                   .dbsym l outputIndex 0 c
 0046                   .dbend
                        .area data(ram, con, rel)
 0000                   .dbfile ./systemvars.c
 0000           _SystemVars::
 0000 000000            .byte 0,0,0
 0003                   .dbsym e SystemVars _SystemVars X

⌨️ 快捷键说明

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