📄 main.asm
字号:
.DW '.stabs "PORF:26,1,1;WDRF:26,2,1;LPLVRF:26,3,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "SPLVRF:26,4,1;IARF:26,5,1;IIRF:26,6,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "reserved:26,7,2;FCHK:26,9,7;;,0,16;;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "P_Clk_Ctrl_DEF:t210=211=u1W:26,0,16;B:212=s1reserved:26,0,14;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "OSCIE:26,14,1;OSCSF:26,15,1;;,0,16;;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "P_System_Option_DEF:t213=214=u1W:26,0,16;B:215=s1CLK:26,0,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "WDG:26,1,1;LVR:26,2,1;LVD:26,3,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "Security:26,4,1;Verification:26,5,11;;,0,16;;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "P_WatchDog_Ctrl_DEF:t216=217=u1W:26,0,16;B:218=s1WDPS:26,0,3;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "WDCHK:26,3,5;reserved:26,8,6;WDRS:26,14,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "WDEN:26,15,1;;,0,16;;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "P_WatchDog_Clr_DEF:t219=220=u1W:26,0,16;B:221=s1WDTCLR:26,0,16;;,0,16;;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "P_Wakeup_Ctrl_DEF:t222=223=u1W:26,0,16;B:224=s1Reserve1:26,0,4;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "CMTWE:26,4,1;TPM0WE:26,5,1;TPM1WE:26,6,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "TPM2WE:26,7,1;reserved2:26,8,3;EXT0WE:26,11,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "EXT1WE:26,12,1;SPIWE:26,13,1;UARTWE:26,14,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "KEYWE:26,15,1;;,0,16;;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "P_UART_Data_DEF:t225=226=u1W:26,0,16;B:227=s1UARTDATA:26,0,8;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "FE:26,8,1;PE:26,9,1;reserved1:26,10,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "OE:26,11,1;reserved2:26,12,4;;,0,16;;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "P_UART_RXStatus_DEF:t228=229=u1W:26,0,16;B:230=s1FE:26,0,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "PE:26,1,1;reserve1:26,2,1;OE:26,3,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "reserved2:26,4,12;;,0,16;;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "P_UART_Ctrl_DEF:t231=232=u1W:26,0,16;B:233=s1reserved1:26,0,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "PEN:26,1,1;PSEL:26,2,1;SBSEL:26,3,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "reserved2:26,4,5;RXCHSEL:26,9,1;TXCHSEL:26,10,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "Reset:26,11,1;TXEN:26,12,1;RXEN:26,13,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "TXIE:26,14,1;RXIE:26,15,1;;,0,16;;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "P_UART_BaudRate_DEF:t234=235=u1W:26,0,16;B:236=s1UARTBUD:26,0,16;;,0,16;;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "P_UART_Status_DEF:t237=238=u1W:26,0,16;B:239=s1reserved1:26,0,3;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "BY:26,3,1;reserved2:26,4,2;RXBF:26,6,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "reserved3:26,7,7;TXIF:26,14,1;RXIF:26,15,1;;,0,16;;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "P_INT_Status_DEF:t240=241=u1W:26,0,16;B:242=s1FTIF:26,0,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "OSCSF:26,1,1;OLIF:26,2,1;reserved:26,3,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "CMTIF:26,4,1;TPM0IF:26,5,1;TPM1IF:26,6,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "TPM2IF:26,7,1;TPM3IF:26,8,1;TPM4IF:26,9,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "ADCIF:26,10,1;EXT0IF:26,11,1;EXT1IF:26,12,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "SPIIF:26,13,1;UARTIF:26,14,1;KEYIF:26,15,1;;,0,16;;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "P_INT_Priority_DEF:t243=244=u1W:26,0,16;B:245=s1FTIP:26,0,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "OSCIP:26,1,1;OLIP:26,2,1;reserved1:26,3,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "CMTIP:26,4,1;TPM0IP:26,5,1;TPM1IP:26,6,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "TPM2IP:26,7,1;TPM3IP:26,8,1;TPM4IP:26,9,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "ADCIP:26,10,1;EXT0IP:26,11,1;EXT1IP:26,12,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "SPIIP:26,13,1;UARTIP:26,14,1;KEYIP:26,15,1;;,0,16;;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "P_MisINT_Ctrl_DEF:t246=247=u1W:26,0,16;B:248=s1reserved1:26,0,11;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "EXT0IE:26,11,1;EXT1IE:26,12,1;EXT0MS:26,13,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "EXT1MS:26,14,1;KEYIE:26,15,1;;,0,16;;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "P_Flash_RW_DEF:t249=250=u1W:26,0,16;B:251=s1BK0WENB:26,0,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "BK1WENB:26,1,1;BK2WENB:26,2,1;BK3WENB:26,3,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "BK4WENB:26,4,1;BK5WENB:26,5,1;BK6WENB:26,6,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "BK7WENB:26,7,1;BK8WENB:26,8,1;BK9WENB:26,9,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "BK10WENB:26,10,1;BK11WENB:26,11,1;BK12WENB:26,12,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "BK13WENB:26,13,1;BK14WENB:26,14,1;BK15WENB:26,15,1;;,0,16;;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "P_Flash_Ctrl_DEF:t252=253=u1W:26,0,16;B:254=s1Reserve:26,0,16;;,0,16;;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "P_CMT_Start_DEF:t255=256=u1W:26,0,16;B:257=s1ST0:26,0,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "ST1:26,1,1;Rerserved:26,2,14;;,0,16;;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "P_CMT_Ctrl_DEF:t258=259=u1W:26,0,16;B:260=s1CKA:26,0,3;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "Reserved1:26,3,3;CM0IE:26,6,1;CM0IF:26,7,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "CKB:26,8,3;Reserved2:26,11,3;CM1IE:26,14,1;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "CM1IF:26,15,1;;,0,16;;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "P_BZO_Ctrl_DEF:t261=262=u1W:26,0,16;B:263=s1BZOCK:26,0,2;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "Reserved:26,2,13;BZOEN:26,15,1;;,0,16;;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "SPWM:T264=s6SPWM_flag:45,0,16;uiPhases_Temp:4,16,16;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "uiAM_Temp:4,32,16;uiPWM_period:4,48,16;Currently_F:4,64,16;\\",128,0,0,0',0x0d,0x0a
.DW '.stabs "End_F:4,80,16;;",128,0,0,0',0x0d,0x0a
.CODE
.code
.debug
.dw '.stabs "main:F1",36,0,0,',0,0,offset _main,seg _main,0x0d,0x0a
.CODE
.public _main
_main: .proc
.debug
.dw '.stabn 0x44,0,30,',0,0
.dd LM1-_main
.dw 0x0d,0x0a
.code
LM1:
// total=1, vars=1
// frame_pointer_needed: 1
push bp to [sp]
sp-=1
bp=sp+1
R1=BP+4
[BP]=R1 // QImode move
.debug
.dw '.stabn 0x44,0,31,',0,0
.dd LM2-_main
.dw 0x0d,0x0a
.code
LM2:
LBB2:
// GCC inline ASM start
int off
// GCC inline ASM end
.debug
.dw '.stabn 0x44,0,32,',0,0
.dd LM3-_main
.dw 0x0d,0x0a
.code
LM3:
R1=0 // QImode move
[SP--]=R1 // QImode move
R1=0 // QImode move
[SP--]=R1 // QImode move
call _SPMC75_SPWM_TMR_Init // call without return value
SP=SP+2
.debug
.dw '.stabn 0x44,0,33,',0,0
.dd LM4-_main
.dw 0x0d,0x0a
.code
LM4:
R1=9600 // QImode move
[SP--]=R1 // QImode move
call _MC75_DMC_UART_Setup // call without return value
SP=SP+1
.debug
.dw '.stabn 0x44,0,34,',0,0
.dd LM5-_main
.dw 0x0d,0x0a
.code
LM5:
call _Systime_Init // call with return value
.debug
.dw '.stabn 0x44,0,35,',0,0
.dd LM6-_main
.dw 0x0d,0x0a
.code
LM6:
// GCC inline ASM start
int irq
// GCC inline ASM end
.debug
.dw '.stabn 0x44,0,36,',0,0
.dd LM7-_main
.dw 0x0d,0x0a
.code
LM7:
L3:
pc=L5 // Indirect jump
pc=L4 // Indirect jump
L5:
.debug
.dw '.stabn 0x44,0,38,',0,0
.dd LM8-_main
.dw 0x0d,0x0a
.code
LM8:
LBB3:
call _MC75_DMC_UART_Service // call without return value
.debug
.dw '.stabn 0x44,0,39,',0,0
.dd LM9-_main
.dw 0x0d,0x0a
.code
LM9:
R1=0 // QImode move
[SP--]=R1 // QImode move
R1=1 // QImode move
[SP--]=R1 // QImode move
call _SPMC_DMC_Load_SpdCmd // call with return value
SP=SP+1
[SP--]=R1 // QImode move
call _SPMC75_Moto_RUN_F_Set // call without return value
SP=SP+2
.debug
.dw '.stabn 0x44,0,40,',0,0
.dd LM10-_main
.dw 0x0d,0x0a
.code
LM10:
R1=[_g_iMoto_Run_Time] // QImode move
CMP R1,9 // QImode compare
JG L7 // QImode LE
PC=L6
L7:
.debug
.dw '.stabn 0x44,0,42,',0,0
.dd LM11-_main
.dw 0x0d,0x0a
.code
LM11:
LBB4:
R1=0 // QImode move
[_g_iMoto_Run_Time]=R1 // QImode move
.debug
.dw '.stabn 0x44,0,43,',0,0
.dd LM12-_main
.dw 0x0d,0x0a
.code
LM12:
R1=0 // QImode move
[SP--]=R1 // QImode move
call _SPMC75_Moto_RUN_Ctrl // call without return value
SP=SP+1
.debug
.dw '.stabn 0x44,0,44,',0,0
.dd LM13-_main
.dw 0x0d,0x0a
.code
LM13:
R1=[_g_SPWM_Data_Temp+4] // QImode move
[SP--]=R1 // QImode move
R1=1 // QImode move
[SP--]=R1 // QImode move
call _SPMC_DMC_Save_SpdNow // call with return value
SP=SP+2
.debug
.dw '.stabn 0x44,0,45,',0,0
.dd LM14-_main
.dw 0x0d,0x0a
.code
LM14:
LBE4:
L6:
.debug
.dw '.stabn 0x44,0,46,',0,0
.dd LM15-_main
.dw 0x0d,0x0a
.code
LM15:
LBE3:
pc=L3 // Indirect jump
L4:
.debug
.dw '.stabn 0x44,0,47,',0,0
.dd LM16-_main
.dw 0x0d,0x0a
.code
LM16:
LBE2:
.debug
.dw '.stabn 0x44,0,47,',0,0
.dd LM17-_main
.dw 0x0d,0x0a
.code
LM17:
L2:
sp+=1
pop bp from [sp]
retf
.endp // end of main
.debug
.dw '.stabn 0xc0,0,0,',0,0
.dd LBB2-_main
.dw 0x0d,0x0a
.code
.debug
.dw '.stabn 0xc0,0,0,',0,0
.dd LBB3-_main
.dw 0x0d,0x0a
.code
.debug
.dw '.stabn 0xc0,0,0,',0,0
.dd LBB4-_main
.dw 0x0d,0x0a
.code
.debug
.dw '.stabn 0xe0,0,0,',0,0
.dd LBE4-_main
.dw 0x0d,0x0a
.code
.debug
.dw '.stabn 0xe0,0,0,',0,0
.dd LBE3-_main
.dw 0x0d,0x0a
.code
.debug
.dw '.stabn 0xe0,0,0,',0,0
.dd LBE2-_main
.dw 0x0d,0x0a
.code
.debug
.dw '.stabf ',0,0
.dd LME1-_main
.dw 0x0d,0x0a
.code
LME1:
// ISR ATTRIBUTE FUNCTION, LOCATE in .text SECTION
.text
.debug
.dw '.stabs "IRQ3:F19",36,0,0,',0,0,offset _IRQ3,seg _IRQ3,0x0d,0x0a
.TEXT
.public _IRQ3
_IRQ3: .proc
.debug
.dw '.stabn 0x44,0,56,',0,0
.dd LM18-_IRQ3
.dw 0x0d,0x0a
.text
LM18:
// ISR ATTRIBUTE FUNCTION, PUSH r1,bp
push r1,bp to [sp]
// total=1, vars=1
// frame_pointer_needed: 1
sp-=1
bp=sp+1
R1=BP+4
[BP]=R1 // QImode move
.debug
.dw '.stabn 0x44,0,57,',0,0
.dd LM19-_IRQ3
.dw 0x0d,0x0a
.text
LM19:
R1=[29736] // QImode move
R2=4 // QImode move
[SP--]=R2 // QImode move
[SP--]=R1 // QImode move
call __rshu1 // call with return value
SP=SP+2
R2=R1&1
CMP R2,0 // QImode test
JNZ L10 // QImode EQ
PC=L9
L10:
.debug
.dw '.stabn 0x44,0,59,',0,0
.dd LM20-_IRQ3
.dw 0x0d,0x0a
.text
LM20:
R1=[29736] // QImode move
R2=R1|16
[29736]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,60,',0,0
.dd LM21-_IRQ3
.dw 0x0d,0x0a
.text
LM21:
R1=0 // QImode move
[SP--]=R1 // QImode move
call _SPMC75_SPWM_ISR // call without return value
SP=SP+1
L9:
.debug
.dw '.stabn 0x44,0,62,',0,0
.dd LM22-_IRQ3
.dw 0x0d,0x0a
.text
LM22:
.debug
.dw '.stabn 0x44,0,62,',0,0
.dd LM23-_IRQ3
.dw 0x0d,0x0a
.text
LM23:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -