📄 main.lis
字号:
0000 cpu LMM
.module main.c
.area text(rom, con, rel)
0000 .dbfile ./main.c
0000 .dbfunc e main _main fV
0000 _main::
0000 .dbline -1
0000 .dbline 10
0000 ; //----------------------------------------------------------------------------
0000 ; // C main line
0000 ; //----------------------------------------------------------------------------
0000 ;
0000 ; #include <m8c.h> // part specific constants and macros
0000 ; #include "PSoCAPI.h" // PSoC API definitions for all User Modules
0000 ;
0000 ;
0000 ; void main()
0000 ; {
0000 .dbline 14
0000 ; //initialization
0000 ; extern BYTE DELSIG8_bfStatus;
0000 ; extern BYTE DELSIG8_cResult;
0000 ; M8C_EnableGInt;
0000 7101 or F, 01h
0002
0002 .dbline 15
0002 ; DELSIG8_Start( DELSIG8_HIGHPOWER );
0002 10 push X
0003 5003 mov A,3
0005 7C0000 xcall _DELSIG8_Start
0008 .dbline 16
0008 ; DELSIG8_StartAD();
0008 7C0000 xcall _DELSIG8_StartAD
000B .dbline 17
000B ; PGA_SetGain(PGA_G1_00);
000B 50F8 mov A,-8
000D 7C0000 xcall _PGA_SetGain
0010 .dbline 18
0010 ; PGA_Start(PGA_MEDPOWER);
0010 5002 mov A,2
0012 7C0000 xcall _PGA_Start
0015 .dbline 19
0015 ; LCD_Start();
0015 7C0000 xcall _LCD_Start
0018 20 pop X
0019 8023 xjmp L3
001B L2:
001B .dbline 23
001B ;
001B ;
001B ; //loop
001B ; while(1) {
001B .dbline 24
001B ; if ( DELSIG8_bfStatus ) {
001B 62D000 mov REG[0xd0],>_DELSIG8_bfStatus
001E 3C0000 cmp [_DELSIG8_bfStatus],0
0021 A01B jz L5
0023 .dbline 24
0023 .dbline 25
0023 ; DELSIG8_bfStatus = 0;
0023 550000 mov [_DELSIG8_bfStatus],0
0026 .dbline 26
0026 ; LCD_Position(0,0);
0026 10 push X
0027 5000 mov A,0
0029 5C mov X,A
002A 7C0000 xcall _LCD_Position
002D 20 pop X
002E .dbline 27
002E ; LCD_PrHexByte(DELSIG8_cResult+0x80);
002E 62D000 mov REG[0xd0],>_DELSIG8_cResult
0031 5100 mov A,[_DELSIG8_cResult]
0033 0180 add A,-128
0035 62D000 mov REG[0xd0],>__r0
0038 10 push X
0039 7C0000 xcall _LCD_PrHexByte
003C 20 pop X
003D .dbline 28
003D ; }
003D L5:
003D .dbline 29
003D L3:
003D .dbline 23
003D 8FDD xjmp L2
003F X0:
003F .dbline -2
003F .dbline 30
003F ; }
003F ; }
003F L1:
003F .dbline 0 ; func end
003F 8FFF jmp .
0041 .dbend
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -