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

📄 isr.asm

📁 用凌阳16位单片机SPMC75F2413A来控制无刷直流电动机的详细程序包
💻 ASM
📖 第 1 页 / 共 3 页
字号:
.public _IRQ3
_IRQ3:	.proc
.debug
	.dw '.stabn 0x44,0,99,',0,0
	.dd LM23-_IRQ3
	.dw 0x0d,0x0a
.text
LM23:
	// ISR ATTRIBUTE FUNCTION, PUSH r1,bp
	push r1,bp to [sp]

	// total=0, vars=0
	// frame_pointer_needed: 1
	bp=sp+1

	R1=BP+3
.debug
	.dw '.stabn 0x44,0,103,',0,0
	.dd LM24-_IRQ3
	.dw 0x0d,0x0a
.text
LM24:
	R3=[29736]	// QImode move
	R2=R3 lsr 4
	R3=R2&1
	CMP R3,0	// QImode test
	JNZ L16	// QImode EQ
	PC=L14
L16:
	R3=[29731]	// QImode move
	R2=R3 lsr 4
	R3=R2&1
	CMP R3,0	// QImode test
	JNZ L17	// QImode EQ
	PC=L14
L17:
L14:
.debug
	.dw '.stabn 0x44,0,110,',0,0
	.dd LM25-_IRQ3
	.dw 0x0d,0x0a
.text
LM25:
	R3=[29736]	// QImode move
	R2=R3 lsr 3
	R3=R2&1
	CMP R3,0	// QImode test
	JNZ L18	// QImode EQ
	PC=L15
L18:
	R3=[29731]	// QImode move
	R2=R3 lsr 3
	R3=R2&1
	CMP R3,0	// QImode test
	JNZ L19	// QImode EQ
	PC=L15
L19:
L15:
.debug
	.dw '.stabn 0x44,0,114,',0,0
	.dd LM26-_IRQ3
	.dw 0x0d,0x0a
.text
LM26:
	R2=[29736]	// QImode move
	[29736]=R2	// QImode move
.debug
	.dw '.stabn 0x44,0,115,',0,0
	.dd LM27-_IRQ3
	.dw 0x0d,0x0a
.text
LM27:
.debug
	.dw '.stabn 0x44,0,115,',0,0
	.dd LM28-_IRQ3
	.dw 0x0d,0x0a
.text
LM28:
L13:

	// ISR ATTRIBUTE FUNCTION, POP r1,bp
	pop r1,bp from [sp]
	reti
	.endp	// end of IRQ3

.debug
	.dw '.stabf ',0,0
	.dd LME6-_IRQ3
	.dw 0x0d,0x0a
.text
LME6:
// ISR ATTRIBUTE FUNCTION, LOCATE in .text SECTION
.text
.debug
	.dw '.stabs "IRQ4:F19",36,0,0,',0,0,offset _IRQ4,seg _IRQ4,0x0d,0x0a
.TEXT
.public _IRQ4
_IRQ4:	.proc
.debug
	.dw '.stabn 0x44,0,123,',0,0
	.dd LM29-_IRQ4
	.dw 0x0d,0x0a
.text
LM29:
	// ISR ATTRIBUTE FUNCTION, PUSH r1,bp
	push r1,bp to [sp]

	// total=0, vars=0
	// frame_pointer_needed: 1
	bp=sp+1

	R1=BP+3
.debug
	.dw '.stabn 0x44,0,124,',0,0
	.dd LM30-_IRQ4
	.dw 0x0d,0x0a
.text
LM30:
L20:

	// ISR ATTRIBUTE FUNCTION, POP r1,bp
	pop r1,bp from [sp]
	reti
	.endp	// end of IRQ4

.debug
	.dw '.stabf ',0,0
	.dd LME7-_IRQ4
	.dw 0x0d,0x0a
.text
LME7:
// ISR ATTRIBUTE FUNCTION, LOCATE in .text SECTION
.text
.debug
	.dw '.stabs "IRQ5:F19",36,0,0,',0,0,offset _IRQ5,seg _IRQ5,0x0d,0x0a
.TEXT
.public _IRQ5
_IRQ5:	.proc
.debug
	.dw '.stabn 0x44,0,133,',0,0
	.dd LM31-_IRQ5
	.dw 0x0d,0x0a
.text
LM31:
	// ISR ATTRIBUTE FUNCTION, PUSH r1,bp
	push r1,bp to [sp]

	// total=0, vars=0
	// frame_pointer_needed: 1
	bp=sp+1

	R1=BP+3
.debug
	.dw '.stabn 0x44,0,135,',0,0
	.dd LM32-_IRQ5
	.dw 0x0d,0x0a
.text
LM32:
L21:

	// ISR ATTRIBUTE FUNCTION, POP r1,bp
	pop r1,bp from [sp]
	reti
	.endp	// end of IRQ5

.debug
	.dw '.stabf ',0,0
	.dd LME8-_IRQ5
	.dw 0x0d,0x0a
.text
LME8:
// ISR ATTRIBUTE FUNCTION, LOCATE in .text SECTION
.text
.debug
	.dw '.stabs "IRQ6:F19",36,0,0,',0,0,offset _IRQ6,seg _IRQ6,0x0d,0x0a
.TEXT
.public _IRQ6
_IRQ6:	.proc
.debug
	.dw '.stabn 0x44,0,143,',0,0
	.dd LM33-_IRQ6
	.dw 0x0d,0x0a
.text
LM33:
	// 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,144,',0,0
	.dd LM34-_IRQ6
	.dw 0x0d,0x0a
.text
LM34:
	R2=[28832]	// QImode move
	R1=R2 lsr 2
	R1=R1 lsr 4
	R1=R1 lsr 4
	R1=R1 lsr 4
	R2=R1&1
	CMP R2,0	// QImode test
	JNZ L26	// QImode EQ
	PC=L23
L26:
.debug
	.dw '.stabn 0x44,0,146,',0,0
	.dd LM35-_IRQ6
	.dw 0x0d,0x0a
.text
LM35:
	R2=[28932]	// QImode move
	R1=R2 lsr 3
	R1=R1 lsr 4
	R1=R1 lsr 4
	R1=R1 lsr 4
	CMP R1,0	// QImode test
	JNZ L27	// QImode EQ
	PC=L24
L27:
	call _MC75_DMC_RcvStream	// call without return value
L24:
.debug
	.dw '.stabn 0x44,0,147,',0,0
	.dd LM36-_IRQ6
	.dw 0x0d,0x0a
.text
LM36:
	R2=[28932]	// QImode move
	R1=R2 lsr 2
	R1=R1 lsr 4
	R1=R1 lsr 4
	R1=R1 lsr 4
	R2=R1&1
	CMP R2,0	// QImode test
	JNZ L28	// QImode EQ
	PC=L23
L28:
	R2=[28930]	// QImode move
	R1=R2 lsr 2
	R1=R1 lsr 4
	R1=R1 lsr 4
	R1=R1 lsr 4
	R2=R1&1
	CMP R2,0	// QImode test
	JNZ L29	// QImode EQ
	PC=L23
L29:
L25:
L23:
.debug
	.dw '.stabn 0x44,0,149,',0,0
	.dd LM37-_IRQ6
	.dw 0x0d,0x0a
.text
LM37:
.debug
	.dw '.stabn 0x44,0,149,',0,0
	.dd LM38-_IRQ6
	.dw 0x0d,0x0a
.text
LM38:
L22:

	sp+=1
	// ISR ATTRIBUTE FUNCTION, POP r1,bp
	pop r1,bp from [sp]
	reti
	.endp	// end of IRQ6

.debug
	.dw '.stabf ',0,0
	.dd LME9-_IRQ6
	.dw 0x0d,0x0a
.text
LME9:
// ISR ATTRIBUTE FUNCTION, LOCATE in .text SECTION
.text
.debug
	.dw '.stabs "IRQ7:F19",36,0,0,',0,0,offset _IRQ7,seg _IRQ7,0x0d,0x0a
.TEXT
.public _IRQ7
_IRQ7:	.proc
.debug
	.dw '.stabn 0x44,0,157,',0,0
	.dd LM39-_IRQ7
	.dw 0x0d,0x0a
.text
LM39:
	// 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,158,',0,0
	.dd LM40-_IRQ7
	.dw 0x0d,0x0a
.text
LM40:
	R2=[28832]	// QImode move
	R1=R2 lsr 4
	R2=R1&1
	CMP R2,0	// QImode test
	JNZ L34	// QImode EQ
	PC=L31
L34:
.debug
	.dw '.stabn 0x44,0,160,',0,0
	.dd LM41-_IRQ7
	.dw 0x0d,0x0a
.text
LM41:
	R2=[29953]	// QImode move
	R1=R2 lsr 3
	R1=R1 lsr 4
	R2=R1&1
	CMP R2,0	// QImode test
	JNZ L35	// QImode EQ
	PC=L32
L35:
	R2=[29953]	// QImode move
	R1=R2 lsr 2
	R1=R1 lsr 4
	R2=R1&1
	CMP R2,0	// QImode test
	JNZ L36	// QImode EQ
	PC=L32
L36:
.debug
	.dw '.stabn 0x44,0,162,',0,0
	.dd LM42-_IRQ7
	.dw 0x0d,0x0a
.text
LM42:
	call _BLDC_Motor_Actiyator	// call without return value
L32:
.debug
	.dw '.stabn 0x44,0,165,',0,0
	.dd LM43-_IRQ7
	.dw 0x0d,0x0a
.text
LM43:
	R2=[29953]	// QImode move
	R1=R2 lsr 3
	R1=R1 lsr 4
	R1=R1 lsr 4
	R1=R1 lsr 4
	CMP R1,0	// QImode test
	JNZ L37	// QImode EQ
	PC=L33
L37:
	R2=[29953]	// QImode move
	R1=R2 lsr 2
	R1=R1 lsr 4
	R1=R1 lsr 4
	R1=R1 lsr 4
	R2=R1&1
	CMP R2,0	// QImode test
	JNZ L38	// QImode EQ
	PC=L33
L38:
.debug
	.dw '.stabn 0x44,0,167,',0,0
	.dd LM44-_IRQ7
	.dw 0x0d,0x0a
.text
LM44:
// GCC inline ASM start
	nop

// GCC inline ASM end
L33:
.debug
	.dw '.stabn 0x44,0,170,',0,0
	.dd LM45-_IRQ7
	.dw 0x0d,0x0a
.text
LM45:
	R1=[29953]	// QImode move
	[29953]=R1	// QImode move
L31:
.debug
	.dw '.stabn 0x44,0,173,',0,0
	.dd LM46-_IRQ7
	.dw 0x0d,0x0a
.text
LM46:
.debug
	.dw '.stabn 0x44,0,173,',0,0
	.dd LM47-_IRQ7
	.dw 0x0d,0x0a
.text
LM47:
L30:

	sp+=1
	// ISR ATTRIBUTE FUNCTION, POP r1,bp
	pop r1,bp from [sp]
	reti
	.endp	// end of IRQ7

.debug
	.dw '.stabf ',0,0
	.dd LME10-_IRQ7
	.dw 0x0d,0x0a
.text
LME10:
.external _BLDC_Motor_Actiyator
.external _MC75_DMC_RcvStream
.external _BLDC_Motor_Startup
.external _BLDC_Motor_Normalrun
.external _IPM_Fault_Protect
	.end

⌨️ 快捷键说明

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