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

📄 chap3.asm

📁 用凌阳16位单片机SPMC75F2413A来控制无刷直流电动机的详细程序包
💻 ASM
📖 第 1 页 / 共 4 页
字号:
L60:
.debug
	.dw '.stabn 0x44,0,334,',0,0
	.dd LM97-_IPM_Trigger_NF120HalfPWM
	.dw 0x0d,0x0a
.code
LM97:
	R1=17426	// QImode move
	[29703]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,338,',0,0
	.dd LM98-_IPM_Trigger_NF120HalfPWM
	.dw 0x0d,0x0a
.code
LM98:
	pc=L59	// Indirect jump
L61:
.debug
	.dw '.stabn 0x44,0,341,',0,0
	.dd LM99-_IPM_Trigger_NF120HalfPWM
	.dw 0x0d,0x0a
.code
LM99:
	R1=16920	// QImode move
	[29703]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,345,',0,0
	.dd LM100-_IPM_Trigger_NF120HalfPWM
	.dw 0x0d,0x0a
.code
LM100:
	pc=L59	// Indirect jump
L62:
.debug
	.dw '.stabn 0x44,0,348,',0,0
	.dd LM101-_IPM_Trigger_NF120HalfPWM
	.dw 0x0d,0x0a
.code
LM101:
	R1=16649	// QImode move
	[29703]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,352,',0,0
	.dd LM102-_IPM_Trigger_NF120HalfPWM
	.dw 0x0d,0x0a
.code
LM102:
	pc=L59	// Indirect jump
L63:
.debug
	.dw '.stabn 0x44,0,355,',0,0
	.dd LM103-_IPM_Trigger_NF120HalfPWM
	.dw 0x0d,0x0a
.code
LM103:
	R1=17441	// QImode move
	[29703]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,359,',0,0
	.dd LM104-_IPM_Trigger_NF120HalfPWM
	.dw 0x0d,0x0a
.code
LM104:
	pc=L59	// Indirect jump
L64:
.debug
	.dw '.stabn 0x44,0,362,',0,0
	.dd LM105-_IPM_Trigger_NF120HalfPWM
	.dw 0x0d,0x0a
.code
LM105:
	R1=16932	// QImode move
	[29703]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,366,',0,0
	.dd LM106-_IPM_Trigger_NF120HalfPWM
	.dw 0x0d,0x0a
.code
LM106:
	pc=L59	// Indirect jump
L65:
.debug
	.dw '.stabn 0x44,0,369,',0,0
	.dd LM107-_IPM_Trigger_NF120HalfPWM
	.dw 0x0d,0x0a
.code
LM107:
	R1=16646	// QImode move
	[29703]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,373,',0,0
	.dd LM108-_IPM_Trigger_NF120HalfPWM
	.dw 0x0d,0x0a
.code
LM108:
	pc=L59	// Indirect jump
L66:
.debug
	.dw '.stabn 0x44,0,376,',0,0
	.dd LM109-_IPM_Trigger_NF120HalfPWM
	.dw 0x0d,0x0a
.code
LM109:
	call _IPM_Trigger_Off	// call without return value
.debug
	.dw '.stabn 0x44,0,377,',0,0
	.dd LM110-_IPM_Trigger_NF120HalfPWM
	.dw 0x0d,0x0a
.code
LM110:
	pc=L59	// Indirect jump
L59:
.debug
	.dw '.stabn 0x44,0,379,',0,0
	.dd LM111-_IPM_Trigger_NF120HalfPWM
	.dw 0x0d,0x0a
.code
LM111:
.debug
	.dw '.stabn 0x44,0,379,',0,0
	.dd LM112-_IPM_Trigger_NF120HalfPWM
	.dw 0x0d,0x0a
.code
LM112:
L58:

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

.debug
	.dw '.stabs "position:p4",160,0,0,4',0x0d,0x0a
.CODE
.debug
	.dw '.stabf ',0,0
	.dd LME7-_IPM_Trigger_NF120HalfPWM
	.dw 0x0d,0x0a
.code
LME7:
.code
.debug
	.dw '.stabs "IPM_Trigger_PB120HalfPWM:F19",36,0,0,',0,0,offset _IPM_Trigger_PB120HalfPWM,seg _IPM_Trigger_PB120HalfPWM,0x0d,0x0a
.CODE
.public _IPM_Trigger_PB120HalfPWM
_IPM_Trigger_PB120HalfPWM:	.proc
.debug
	.dw '.stabn 0x44,0,386,',0,0
	.dd LM113-_IPM_Trigger_PB120HalfPWM
	.dw 0x0d,0x0a
.code
LM113:
	// 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,387,',0,0
	.dd LM114-_IPM_Trigger_PB120HalfPWM
	.dw 0x0d,0x0a
.code
LM114:
	R3=[BP]	// QImode move
	R3=[R3]	// QImode move
	R2=R3&7
	R1=R2	// QImode move
	R1=R1-1
	CMP R1,5	// QImode compare
	JNA L79	// QImode GTU
	PC=L77
L79:
	R2=L78	// QImode move
	R1+=R2	// addqi3_r0r
	R2=R1	// QImode move
	R1=[R2]	// QImode move
	pc=R1	// tablejump
.text
L78:
	.dw L74
	.dw L76
	.dw L75
	.dw L72
	.dw L73
	.dw L71
.code
L71:
.debug
	.dw '.stabn 0x44,0,390,',0,0
	.dd LM115-_IPM_Trigger_PB120HalfPWM
	.dw 0x0d,0x0a
.code
LM115:
	R1=17426	// QImode move
	[29703]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,394,',0,0
	.dd LM116-_IPM_Trigger_PB120HalfPWM
	.dw 0x0d,0x0a
.code
LM116:
	pc=L70	// Indirect jump
L72:
.debug
	.dw '.stabn 0x44,0,397,',0,0
	.dd LM117-_IPM_Trigger_PB120HalfPWM
	.dw 0x0d,0x0a
.code
LM117:
	R1=16920	// QImode move
	[29703]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,401,',0,0
	.dd LM118-_IPM_Trigger_PB120HalfPWM
	.dw 0x0d,0x0a
.code
LM118:
	pc=L70	// Indirect jump
L73:
.debug
	.dw '.stabn 0x44,0,404,',0,0
	.dd LM119-_IPM_Trigger_PB120HalfPWM
	.dw 0x0d,0x0a
.code
LM119:
	R1=16649	// QImode move
	[29703]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,408,',0,0
	.dd LM120-_IPM_Trigger_PB120HalfPWM
	.dw 0x0d,0x0a
.code
LM120:
	pc=L70	// Indirect jump
L74:
.debug
	.dw '.stabn 0x44,0,411,',0,0
	.dd LM121-_IPM_Trigger_PB120HalfPWM
	.dw 0x0d,0x0a
.code
LM121:
	R1=17441	// QImode move
	[29703]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,415,',0,0
	.dd LM122-_IPM_Trigger_PB120HalfPWM
	.dw 0x0d,0x0a
.code
LM122:
	pc=L70	// Indirect jump
L75:
.debug
	.dw '.stabn 0x44,0,418,',0,0
	.dd LM123-_IPM_Trigger_PB120HalfPWM
	.dw 0x0d,0x0a
.code
LM123:
	R1=16932	// QImode move
	[29703]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,422,',0,0
	.dd LM124-_IPM_Trigger_PB120HalfPWM
	.dw 0x0d,0x0a
.code
LM124:
	pc=L70	// Indirect jump
L76:
.debug
	.dw '.stabn 0x44,0,425,',0,0
	.dd LM125-_IPM_Trigger_PB120HalfPWM
	.dw 0x0d,0x0a
.code
LM125:
	R1=16646	// QImode move
	[29703]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,429,',0,0
	.dd LM126-_IPM_Trigger_PB120HalfPWM
	.dw 0x0d,0x0a
.code
LM126:
	pc=L70	// Indirect jump
L77:
.debug
	.dw '.stabn 0x44,0,432,',0,0
	.dd LM127-_IPM_Trigger_PB120HalfPWM
	.dw 0x0d,0x0a
.code
LM127:
	call _IPM_Trigger_Off	// call without return value
.debug
	.dw '.stabn 0x44,0,433,',0,0
	.dd LM128-_IPM_Trigger_PB120HalfPWM
	.dw 0x0d,0x0a
.code
LM128:
	pc=L70	// Indirect jump
L70:
.debug
	.dw '.stabn 0x44,0,435,',0,0
	.dd LM129-_IPM_Trigger_PB120HalfPWM
	.dw 0x0d,0x0a
.code
LM129:
.debug
	.dw '.stabn 0x44,0,435,',0,0
	.dd LM130-_IPM_Trigger_PB120HalfPWM
	.dw 0x0d,0x0a
.code
LM130:
L69:

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

.debug
	.dw '.stabs "position:p4",160,0,0,4',0x0d,0x0a
.CODE
.debug
	.dw '.stabf ',0,0
	.dd LME8-_IPM_Trigger_PB120HalfPWM
	.dw 0x0d,0x0a
.code
LME8:
.code
.debug
	.dw '.stabs "IPM_Trigger_NB120HalfPWM:F19",36,0,0,',0,0,offset _IPM_Trigger_NB120HalfPWM,seg _IPM_Trigger_NB120HalfPWM,0x0d,0x0a
.CODE
.public _IPM_Trigger_NB120HalfPWM
_IPM_Trigger_NB120HalfPWM:	.proc
.debug
	.dw '.stabn 0x44,0,442,',0,0
	.dd LM131-_IPM_Trigger_NB120HalfPWM
	.dw 0x0d,0x0a
.code
LM131:
	// 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,443,',0,0
	.dd LM132-_IPM_Trigger_NB120HalfPWM
	.dw 0x0d,0x0a
.code
LM132:
	R3=[BP]	// QImode move
	R3=[R3]	// QImode move
	R2=R3&7
	R1=R2	// QImode move
	R1=R1-1
	CMP R1,5	// QImode compare
	JNA L90	// QImode GTU
	PC=L88
L90:
	R2=L89	// QImode move
	R1+=R2	// addqi3_r0r
	R2=R1	// QImode move
	R1=[R2]	// QImode move
	pc=R1	// tablejump
.text
L89:
	.dw L82
	.dw L84
	.dw L83
	.dw L86
	.dw L87
	.dw L85
.code
L82:
.debug
	.dw '.stabn 0x44,0,446,',0,0
	.dd LM133-_IPM_Trigger_NB120HalfPWM
	.dw 0x0d,0x0a
.code
LM133:
	R1=16658	// QImode move
	[29703]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,450,',0,0
	.dd LM134-_IPM_Trigger_NB120HalfPWM
	.dw 0x0d,0x0a
.code
LM134:
	pc=L81	// Indirect jump
L83:
.debug
	.dw '.stabn 0x44,0,453,',0,0
	.dd LM135-_IPM_Trigger_NB120HalfPWM
	.dw 0x0d,0x0a
.code
LM135:
	R1=17432	// QImode move
	[29703]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,457,',0,0
	.dd LM136-_IPM_Trigger_NB120HalfPWM
	.dw 0x0d,0x0a
.code
LM136:
	pc=L81	// Indirect jump
L84:
.debug
	.dw '.stabn 0x44,0,460,',0,0
	.dd LM137-_IPM_Trigger_NB120HalfPWM
	.dw 0x0d,0x0a
.code
LM137:
	R1=16905	// QImode move
	[29703]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,464,',0,0
	.dd LM138-_IPM_Trigger_NB120HalfPWM
	.dw 0x0d,0x0a
.code
LM138:
	pc=L81	// Indirect jump
L85:
.debug
	.dw '.stabn 0x44,0,467,',0,0
	.dd LM139-_IPM_Trigger_NB120HalfPWM
	.dw 0x0d,0x0a
.code
LM139:
	R1=16673	// QImode move
	[29703]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,471,',0,0
	.dd LM140-_IPM_Trigger_NB120HalfPWM
	.dw 0x0d,0x0a
.code
LM140:
	pc=L81	// Indirect jump
L86:
.debug
	.dw '.stabn 0x44,0,474,',0,0
	.dd LM141-_IPM_Trigger_NB120HalfPWM
	.dw 0x0d,0x0a
.code
LM141:
	R1=17444	// QImode move
	[29703]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,478,',0,0
	.dd LM142-_IPM_Trigger_NB120HalfPWM
	.dw 0x0d,0x0a
.code
LM142:
	pc=L81	// Indirect jump
L87:
.debug
	.dw '.stabn 0x44,0,481,',0,0
	.dd LM143-_IPM_Trigger_NB120HalfPWM
	.dw 0x0d,0x0a
.code
LM143:
	R1=16902	// QImode move
	[29703]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,485,',0,0
	.dd LM144-_IPM_Trigger_NB120HalfPWM
	.dw 0x0d,0x0a
.code
LM144:
	pc=L81	// Indirect jump
L88:
.debug
	.dw '.stabn 0x44,0,488,',0,0
	.dd LM145-_IPM_Trigger_NB120HalfPWM
	.dw 0x0d,0x0a
.code
LM145:
	call _IPM_Trigger_Off	// call without return value
.debug
	.dw '.stabn 0x44,0,489,',0,0
	.dd LM146-_IPM_Trigger_NB120HalfPWM
	.dw 0x0d,0x0a
.code
LM146:
	pc=L81	// Indirect jump
L81:
.debug
	.dw '.stabn 0x44,0,491,',0,0
	.dd LM147-_IPM_Trigger_NB120HalfPWM
	.dw 0x0d,0x0a
.code
LM147:
.debug
	.dw '.stabn 0x44,0,491,',0,0
	.dd LM148-_IPM_Trigger_NB120HalfPWM
	.dw 0x0d,0x0a
.code
LM148:
L80:

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

.debug
	.dw '.stabs "position:p4",160,0,0,4',0x0d,0x0a
.CODE
.debug
	.dw '.stabf ',0,0
	.dd LME9-_IPM_Trigger_NB120HalfPWM
	.dw 0x0d,0x0a
.code
LME9:
	.end

⌨️ 快捷键说明

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