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

📄 chap3.asm

📁 用凌阳16位单片机SPMC75F2413A来控制无刷直流电动机的详细程序包
💻 ASM
📖 第 1 页 / 共 4 页
字号:
.public _IPM_Trigger_Off
_IPM_Trigger_Off:	.proc
.debug
	.dw '.stabn 0x44,0,33,',0,0
	.dd LM1-_IPM_Trigger_Off
	.dw 0x0d,0x0a
.code
LM1:
	// total=0, vars=0
	// frame_pointer_needed: 1
	push bp to [sp]
	bp=sp+1

	R1=BP+3
.debug
	.dw '.stabn 0x44,0,34,',0,0
	.dd LM2-_IPM_Trigger_Off
	.dw 0x0d,0x0a
.code
LM2:
	R2=16384	// QImode move
	[29703]=R2	// QImode move
.debug
	.dw '.stabn 0x44,0,38,',0,0
	.dd LM3-_IPM_Trigger_Off
	.dw 0x0d,0x0a
.code
LM3:
.debug
	.dw '.stabn 0x44,0,38,',0,0
	.dd LM4-_IPM_Trigger_Off
	.dw 0x0d,0x0a
.code
LM4:
L2:

	pop bp from [sp]
	retf
	.endp	// end of IPM_Trigger_Off

.debug
	.dw '.stabf ',0,0
	.dd LME1-_IPM_Trigger_Off
	.dw 0x0d,0x0a
.code
LME1:
.code
.debug
	.dw '.stabs "IPM_Trigger_PU120FullPWM:F19",36,0,0,',0,0,offset _IPM_Trigger_PU120FullPWM,seg _IPM_Trigger_PU120FullPWM,0x0d,0x0a
.CODE
.public _IPM_Trigger_PU120FullPWM
_IPM_Trigger_PU120FullPWM:	.proc
.debug
	.dw '.stabn 0x44,0,46,',0,0
	.dd LM5-_IPM_Trigger_PU120FullPWM
	.dw 0x0d,0x0a
.code
LM5:
	// 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,47,',0,0
	.dd LM6-_IPM_Trigger_PU120FullPWM
	.dw 0x0d,0x0a
.code
LM6:
	R3=[BP]	// QImode move
	R3=[R3]	// QImode move
	R2=R3&7
	R1=R2	// QImode move
	R1=R1-1
	CMP R1,5	// QImode compare
	JNA L13	// QImode GTU
	PC=L11
L13:
	R2=L12	// QImode move
	R1+=R2	// addqi3_r0r
	R2=R1	// QImode move
	R1=[R2]	// QImode move
	pc=R1	// tablejump
.text
L12:
	.dw L8
	.dw L10
	.dw L9
	.dw L6
	.dw L7
	.dw L5
.code
L5:
.debug
	.dw '.stabn 0x44,0,50,',0,0
	.dd LM7-_IPM_Trigger_PU120FullPWM
	.dw 0x0d,0x0a
.code
LM7:
	R1=16658	// QImode move
	[29703]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,54,',0,0
	.dd LM8-_IPM_Trigger_PU120FullPWM
	.dw 0x0d,0x0a
.code
LM8:
	pc=L4	// Indirect jump
L6:
.debug
	.dw '.stabn 0x44,0,57,',0,0
	.dd LM9-_IPM_Trigger_PU120FullPWM
	.dw 0x0d,0x0a
.code
LM9:
	R1=16920	// QImode move
	[29703]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,61,',0,0
	.dd LM10-_IPM_Trigger_PU120FullPWM
	.dw 0x0d,0x0a
.code
LM10:
	pc=L4	// Indirect jump
L7:
.debug
	.dw '.stabn 0x44,0,64,',0,0
	.dd LM11-_IPM_Trigger_PU120FullPWM
	.dw 0x0d,0x0a
.code
LM11:
	R1=16905	// QImode move
	[29703]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,68,',0,0
	.dd LM12-_IPM_Trigger_PU120FullPWM
	.dw 0x0d,0x0a
.code
LM12:
	pc=L4	// Indirect jump
L8:
.debug
	.dw '.stabn 0x44,0,71,',0,0
	.dd LM13-_IPM_Trigger_PU120FullPWM
	.dw 0x0d,0x0a
.code
LM13:
	R1=17441	// QImode move
	[29703]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,75,',0,0
	.dd LM14-_IPM_Trigger_PU120FullPWM
	.dw 0x0d,0x0a
.code
LM14:
	pc=L4	// Indirect jump
L9:
.debug
	.dw '.stabn 0x44,0,78,',0,0
	.dd LM15-_IPM_Trigger_PU120FullPWM
	.dw 0x0d,0x0a
.code
LM15:
	R1=17444	// QImode move
	[29703]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,82,',0,0
	.dd LM16-_IPM_Trigger_PU120FullPWM
	.dw 0x0d,0x0a
.code
LM16:
	pc=L4	// Indirect jump
L10:
.debug
	.dw '.stabn 0x44,0,85,',0,0
	.dd LM17-_IPM_Trigger_PU120FullPWM
	.dw 0x0d,0x0a
.code
LM17:
	R1=16646	// QImode move
	[29703]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,89,',0,0
	.dd LM18-_IPM_Trigger_PU120FullPWM
	.dw 0x0d,0x0a
.code
LM18:
	pc=L4	// Indirect jump
L11:
.debug
	.dw '.stabn 0x44,0,92,',0,0
	.dd LM19-_IPM_Trigger_PU120FullPWM
	.dw 0x0d,0x0a
.code
LM19:
	call _IPM_Trigger_Off	// call without return value
.debug
	.dw '.stabn 0x44,0,93,',0,0
	.dd LM20-_IPM_Trigger_PU120FullPWM
	.dw 0x0d,0x0a
.code
LM20:
	pc=L4	// Indirect jump
L4:
.debug
	.dw '.stabn 0x44,0,95,',0,0
	.dd LM21-_IPM_Trigger_PU120FullPWM
	.dw 0x0d,0x0a
.code
LM21:
.debug
	.dw '.stabn 0x44,0,95,',0,0
	.dd LM22-_IPM_Trigger_PU120FullPWM
	.dw 0x0d,0x0a
.code
LM22:
L3:

	sp+=1
	pop bp from [sp]
	retf
	.endp	// end of IPM_Trigger_PU120FullPWM

.debug
	.dw '.stabs "position:p4",160,0,0,4',0x0d,0x0a
.CODE
.debug
	.dw '.stabf ',0,0
	.dd LME2-_IPM_Trigger_PU120FullPWM
	.dw 0x0d,0x0a
.code
LME2:
.code
.debug
	.dw '.stabs "IPM_Trigger_NU120FullPWM:F19",36,0,0,',0,0,offset _IPM_Trigger_NU120FullPWM,seg _IPM_Trigger_NU120FullPWM,0x0d,0x0a
.CODE
.public _IPM_Trigger_NU120FullPWM
_IPM_Trigger_NU120FullPWM:	.proc
.debug
	.dw '.stabn 0x44,0,103,',0,0
	.dd LM23-_IPM_Trigger_NU120FullPWM
	.dw 0x0d,0x0a
.code
LM23:
	// 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,104,',0,0
	.dd LM24-_IPM_Trigger_NU120FullPWM
	.dw 0x0d,0x0a
.code
LM24:
	R3=[BP]	// QImode move
	R3=[R3]	// QImode move
	R2=R3&7
	R1=R2	// QImode move
	R1=R1-1
	CMP R1,5	// QImode compare
	JNA L24	// QImode GTU
	PC=L22
L24:
	R2=L23	// QImode move
	R1+=R2	// addqi3_r0r
	R2=R1	// QImode move
	R1=[R2]	// QImode move
	pc=R1	// tablejump
.text
L23:
	.dw L16
	.dw L18
	.dw L17
	.dw L20
	.dw L21
	.dw L19
.code
L16:
.debug
	.dw '.stabn 0x44,0,107,',0,0
	.dd LM25-_IPM_Trigger_NU120FullPWM
	.dw 0x0d,0x0a
.code
LM25:
	R1=16658	// QImode move
	[29703]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,111,',0,0
	.dd LM26-_IPM_Trigger_NU120FullPWM
	.dw 0x0d,0x0a
.code
LM26:
	pc=L15	// Indirect jump
L17:
.debug
	.dw '.stabn 0x44,0,114,',0,0
	.dd LM27-_IPM_Trigger_NU120FullPWM
	.dw 0x0d,0x0a
.code
LM27:
	R1=16920	// QImode move
	[29703]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,118,',0,0
	.dd LM28-_IPM_Trigger_NU120FullPWM
	.dw 0x0d,0x0a
.code
LM28:
	pc=L15	// Indirect jump
L18:
.debug
	.dw '.stabn 0x44,0,121,',0,0
	.dd LM29-_IPM_Trigger_NU120FullPWM
	.dw 0x0d,0x0a
.code
LM29:
	R1=16905	// QImode move
	[29703]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,125,',0,0
	.dd LM30-_IPM_Trigger_NU120FullPWM
	.dw 0x0d,0x0a
.code
LM30:
	pc=L15	// Indirect jump
L19:
.debug
	.dw '.stabn 0x44,0,128,',0,0
	.dd LM31-_IPM_Trigger_NU120FullPWM
	.dw 0x0d,0x0a
.code
LM31:
	R1=17441	// QImode move
	[29703]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,132,',0,0
	.dd LM32-_IPM_Trigger_NU120FullPWM
	.dw 0x0d,0x0a
.code
LM32:
	pc=L15	// Indirect jump
L20:
.debug
	.dw '.stabn 0x44,0,135,',0,0
	.dd LM33-_IPM_Trigger_NU120FullPWM
	.dw 0x0d,0x0a
.code
LM33:
	R1=17444	// QImode move
	[29703]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,139,',0,0
	.dd LM34-_IPM_Trigger_NU120FullPWM
	.dw 0x0d,0x0a
.code
LM34:
	pc=L15	// Indirect jump
L21:
.debug
	.dw '.stabn 0x44,0,142,',0,0
	.dd LM35-_IPM_Trigger_NU120FullPWM
	.dw 0x0d,0x0a
.code
LM35:
	R1=16646	// QImode move
	[29703]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,146,',0,0
	.dd LM36-_IPM_Trigger_NU120FullPWM
	.dw 0x0d,0x0a
.code
LM36:
	pc=L15	// Indirect jump
L22:
.debug
	.dw '.stabn 0x44,0,149,',0,0
	.dd LM37-_IPM_Trigger_NU120FullPWM
	.dw 0x0d,0x0a
.code
LM37:
	call _IPM_Trigger_Off	// call without return value
.debug
	.dw '.stabn 0x44,0,150,',0,0
	.dd LM38-_IPM_Trigger_NU120FullPWM
	.dw 0x0d,0x0a
.code
LM38:
	pc=L15	// Indirect jump
L15:
.debug
	.dw '.stabn 0x44,0,152,',0,0
	.dd LM39-_IPM_Trigger_NU120FullPWM
	.dw 0x0d,0x0a
.code
LM39:
.debug
	.dw '.stabn 0x44,0,152,',0,0
	.dd LM40-_IPM_Trigger_NU120FullPWM
	.dw 0x0d,0x0a
.code
LM40:
L14:

	sp+=1
	pop bp from [sp]
	retf
	.endp	// end of IPM_Trigger_NU120FullPWM

.debug
	.dw '.stabs "position:p4",160,0,0,4',0x0d,0x0a
.CODE
.debug
	.dw '.stabf ',0,0
	.dd LME3-_IPM_Trigger_NU120FullPWM
	.dw 0x0d,0x0a
.code
LME3:
.code
.debug
	.dw '.stabs "IPM_Trigger_PD120FullPWM:F19",36,0,0,',0,0,offset _IPM_Trigger_PD120FullPWM,seg _IPM_Trigger_PD120FullPWM,0x0d,0x0a
.CODE
.public _IPM_Trigger_PD120FullPWM
_IPM_Trigger_PD120FullPWM:	.proc
.debug
	.dw '.stabn 0x44,0,160,',0,0
	.dd LM41-_IPM_Trigger_PD120FullPWM
	.dw 0x0d,0x0a
.code
LM41:
	// 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,161,',0,0
	.dd LM42-_IPM_Trigger_PD120FullPWM
	.dw 0x0d,0x0a
.code
LM42:
	R3=[BP]	// QImode move
	R3=[R3]	// QImode move
	R2=R3&7
	R1=R2	// QImode move
	R1=R1-1
	CMP R1,5	// QImode compare
	JNA L35	// QImode GTU
	PC=L33
L35:
	R2=L34	// QImode move
	R1+=R2	// addqi3_r0r
	R2=R1	// QImode move
	R1=[R2]	// QImode move
	pc=R1	// tablejump
.text
L34:
	.dw L30
	.dw L32
	.dw L31
	.dw L28
	.dw L29
	.dw L27
.code
L27:
.debug
	.dw '.stabn 0x44,0,164,',0,0
	.dd LM43-_IPM_Trigger_PD120FullPWM
	.dw 0x0d,0x0a
.code
LM43:
	R1=17426	// QImode move
	[29703]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,168,',0,0
	.dd LM44-_IPM_Trigger_PD120FullPWM
	.dw 0x0d,0x0a
.code
LM44:
	pc=L26	// Indirect jump
L28:
.debug
	.dw '.stabn 0x44,0,171,',0,0
	.dd LM45-_IPM_Trigger_PD120FullPWM
	.dw 0x0d,0x0a
.code
LM45:
	R1=17432	// QImode move
	[29703]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,175,',0,0
	.dd LM46-_IPM_Trigger_PD120FullPWM
	.dw 0x0d,0x0a
.code
LM46:
	pc=L26	// Indirect jump
L29:
.debug
	.dw '.stabn 0x44,0,178,',0,0
	.dd LM47-_IPM_Trigger_PD120FullPWM
	.dw 0x0d,0x0a
.code
LM47:
	R1=16649	// QImode move
	[29703]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,182,',0,0
	.dd LM48-_IPM_Trigger_PD120FullPWM
	.dw 0x0d,0x0a
.code
LM48:

⌨️ 快捷键说明

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