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

📄 irq.asm

📁 利用凌阳61单片机实现输液的智能监控及语音报警
💻 ASM
字号:
// GCC for SUNPLUS u'nSP version 1.0.23
// Command: C:\PROGRA~1\Sunplus\UNSPID~1.2D\toolchain\cc1.exe C:\DOCUME~1\lk\LOCALS~1\Temp\cc67aaaa.i -fkeep-inline-functions -quiet -dumpbase IRQ.c -mglobal-var-iram -gstabs -Wall -o .\Debug/IRQ.asm
	.external __sn_func_ptr_sec

// gcc2_compiled.:

.debug
	.dw '.stabs "E:/lk/lianxi/lk_5/",0x64,0,3,',0,0,offset Ltext0,seg Ltext0,0x0d,0x0a
.code
.debug
	.dw '.stabs "E:/lk/lianxi/lk_5/IRQ.c",0x64,0,3,',0,0,offset Ltext0,seg Ltext0,0x0d,0x0a
.code
.code
Ltext0:
.debug
	.dw '.stabs "int:t1=r1;-32768;32767;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "char:t2=r2;0;127;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "long int:t3=r3;-2147483648;2147483647;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "unsigned int:t4=r4;0;65535;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "long unsigned int:t5=r5;0;4294967295;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "long long int:t6=r6;-2147483648;2147483647;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "long long unsigned int:t7=r7;0;4294967295;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "short int:t8=r8;-32768;32767;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "short unsigned int:t9=r9;0;65535;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "signed char:t10=r10;-32768;32767;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "unsigned char:t11=r11;0;65535;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "float:t12=r1;2;0;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "double:t13=r1;2;0;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "long double:t14=r1;2;0;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "complex int:t15=s2real:1,0,16;imag:1,16,16;;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "complex float:t16=r16;2;0;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "complex double:t17=r17;2;0;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "complex long double:t18=r18;2;0;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "void:t19=19",128,0,0,0',0x0d,0x0a
.CODE
.code
.debug
	.dw '.stabs "LED_ISR:F19",36,0,0,',0,0,offset _LED_ISR,seg _LED_ISR,0x0d,0x0a
.CODE
.public _LED_ISR
_LED_ISR:	.proc
.debug
	.dw '.stabn 0x44,0,13,',0,0
	.dd LM1-_LED_ISR
	.dw 0x0d,0x0a
.code
LM1:
	// total=1, vars=1
	// frame_pointer_needed: 1
.debug
	.dw '.stabn 0xa6,0,0,1',0x0d, 0x0a
.code
	PUSH BP to [SP]
	SP-=1
	BP=SP+1

	R1=BP+4
	[BP]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,14,',0,0
	.dd LM2-_LED_ISR
	.dw 0x0d,0x0a
.code
LM2:
	R1=[_i]	// QImode move
	CMP R1,4	// QImode compare
	NSJNG L3	//QImode LE
.debug
	.dw '.stabn 0x44,0,15,',0,0
	.dd LM3-_LED_ISR
	.dw 0x0d,0x0a
.code
LM3:
	R1=0	// QImode move
	[_i]=R1	// QImode move
	PC=L4	// jump
L3:
.debug
	.dw '.stabn 0x44,0,17,',0,0
	.dd LM4-_LED_ISR
	.dw 0x0d,0x0a
.code
LM4:
	R1=[_i]	// QImode move
	R2=1	// QImode move
	[_i]=R1+R2  //addqi3_Qrr
L4:
.debug
	.dw '.stabn 0x44,0,19,',0,0
	.dd LM5-_LED_ISR
	.dw 0x0d,0x0a
.code
LM5:
	R1=[_flat]	// QImode move
	CMP R1,(-1)	// QImode compare
	NSJNZ L5	//QImode NE
.debug
	.dw '.stabn 0x44,0,21,',0,0
	.dd LM6-_LED_ISR
	.dw 0x0d,0x0a
.code
LM6:
	R2=[_ch_num]	// QImode move
	R1=R2+2
	R2=[_numb]	// QImode move
	[SP--]=R1	// QImode move
	[SP--]=R2	// QImode move
	CALL __lshiu1	// call with return value
	SP = SP + 2	//SP
	[28672]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,22,',0,0
	.dd LM7-_LED_ISR
	.dw 0x0d,0x0a
.code
LM7:
	R1=16384	// QImode move
	[28677]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,23,',0,0
	.dd LM8-_LED_ISR
	.dw 0x0d,0x0a
.code
LM8:
	CALL _delay	// call with return value
.debug
	.dw '.stabn 0x44,0,24,',0,0
	.dd LM9-_LED_ISR
	.dw 0x0d,0x0a
.code
LM9:
	PC=L6	// jump
L5:
.debug
	.dw '.stabn 0x44,0,27,',0,0
	.dd LM10-_LED_ISR
	.dw 0x0d,0x0a
.code
LM10:
	R1=0	// QImode move
	[28672]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,28,',0,0
	.dd LM11-_LED_ISR
	.dw 0x0d,0x0a
.code
LM11:
	R1=16384	// QImode move
	[28677]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,29,',0,0
	.dd LM12-_LED_ISR
	.dw 0x0d,0x0a
.code
LM12:
	CALL _delay	// call with return value
L6:
.debug
	.dw '.stabn 0x44,0,31,',0,0
	.dd LM13-_LED_ISR
	.dw 0x0d,0x0a
.code
LM13:
	R2=0	// sign extend
	R1=[_i]
	jpl 1
	R2=-1
	R3=_led_buf	// QImode move
	R2=R1	// QImode move
	R1=R3	// QImode move
	R1 = R1 + R2	//addqi3
	R2=R1	// QImode move
	R4=0	// sign extend
	R3=[R2]
	jpl 1
	R4=-1
	R1=_DispTbl	// QImode move
	R2=R3	// QImode move
	R1 = R1 + R2	//addqi3
	R3=R1	// QImode move
	R2=[R3]	// QImode move
	[28672]=R2	// QImode move
.debug
	.dw '.stabn 0x44,0,32,',0,0
	.dd LM14-_LED_ISR
	.dw 0x0d,0x0a
.code
LM14:
	R1=[_numb]	// QImode move
	R2=[_i]	// QImode move
	[SP--]=R2	// QImode move
	[SP--]=R1	// QImode move
	CALL __lshiu1	// call with return value
	SP = SP + 2	//SP
	[28677]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,33,',0,0
	.dd LM15-_LED_ISR
	.dw 0x0d,0x0a
.code
LM15:
.debug
	.dw '.stabn 0x44,0,33,',0,0
	.dd LM16-_LED_ISR
	.dw 0x0d,0x0a
.code
LM16:
L2:

	SP+=1
	POP BP from [SP]
	RETF
	.endp	// end of LED_ISR

.debug
	.dw '.stabf ',0,0
	.dd LME1-_LED_ISR
	.dw 0x0d,0x0a
.code
LME1:
.code
.debug
	.dw '.stabs "Clock_ISR:F19",36,0,0,',0,0,offset _Clock_ISR,seg _Clock_ISR,0x0d,0x0a
.CODE
.public _Clock_ISR
_Clock_ISR:	.proc
.debug
	.dw '.stabn 0x44,0,37,',0,0
	.dd LM17-_Clock_ISR
	.dw 0x0d,0x0a
.code
LM17:
	// total=0, vars=0
	// frame_pointer_needed: 1
.debug
	.dw '.stabn 0xa6,0,0,0',0x0d, 0x0a
.code
	PUSH BP to [SP]
	BP=SP+1

	R1=BP+3
.debug
	.dw '.stabn 0x44,0,39,',0,0
	.dd LM18-_Clock_ISR
	.dw 0x0d,0x0a
.code
LM18:
	R2=[_Time]	// QImode move
	R3=1	// QImode move
	[_Time]=R2+R3  //addqi3_Qrr
.debug
	.dw '.stabn 0x44,0,43,',0,0
	.dd LM19-_Clock_ISR
	.dw 0x0d,0x0a
.code
LM19:
.debug
	.dw '.stabn 0x44,0,43,',0,0
	.dd LM20-_Clock_ISR
	.dw 0x0d,0x0a
.code
LM20:
L9:

	POP BP from [SP]
	RETF
	.endp	// end of Clock_ISR

.debug
	.dw '.stabf ',0,0
	.dd LME2-_Clock_ISR
	.dw 0x0d,0x0a
.code
LME2:
.code
.debug
	.dw '.stabs "Ext1_IRQ:F19",36,0,0,',0,0,offset _Ext1_IRQ,seg _Ext1_IRQ,0x0d,0x0a
.CODE
.public _Ext1_IRQ
_Ext1_IRQ:	.proc
.debug
	.dw '.stabn 0x44,0,46,',0,0
	.dd LM21-_Ext1_IRQ
	.dw 0x0d,0x0a
.code
LM21:
	// total=4, vars=4
	// frame_pointer_needed: 1
.debug
	.dw '.stabn 0xa6,0,0,4',0x0d, 0x0a
.code
	PUSH BP to [SP]
	SP-=4
	BP=SP+1

	R1=BP+7
	[BP+2]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,47,',0,0
	.dd LM22-_Ext1_IRQ
	.dw 0x0d,0x0a
.code
LM22:
LBB2:
	R1=0	// QImode move
	[BP]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,48,',0,0
	.dd LM23-_Ext1_IRQ
	.dw 0x0d,0x0a
.code
LM23:
	R1=BP	// QImode move
	R2=BP+1
	R1=0	// QImode move
	R3=R2	// QImode move
	[R3]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,49,',0,0
	.dd LM24-_Ext1_IRQ
	.dw 0x0d,0x0a
.code
LM24:
	R1=[_Time]
	R2=0
	//split R3=61440
	R3=61440	// QImode move
	R4=0	// QImode move
	PUSH R1,R2 to [SP]	// pushhi
	PUSH R3,R4 to [SP]	// pushhi
	CALL __divi2	// call with return value
	SP = SP + 4	//SP
	R3=R1	// QImode move
	[_Speed]=R3	// QImode move
.debug
	.dw '.stabn 0x44,0,50,',0,0
	.dd LM25-_Ext1_IRQ
	.dw 0x0d,0x0a
.code
LM25:
	R1=1	// QImode move
	[_Time]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,51,',0,0
	.dd LM26-_Ext1_IRQ
	.dw 0x0d,0x0a
.code
LM26:
	R1=[_Speed]	// QImode move
	[BP]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,52,',0,0
	.dd LM27-_Ext1_IRQ
	.dw 0x0d,0x0a
.code
LM27:
	R1=BP	// QImode move
	R2=BP+1
	R1=0	// QImode move
	R4=R2	// QImode move
	[R4]=R1	// QImode move
L11:
	R1=BP	// QImode move
	R2=BP+1
	R3=R2	// QImode move
	R1=[R3]	// QImode move
	CMP R1,2	// QImode compare
	NSJNA L14	//QImode LEU
	PC=L12	// jump
L14:
.debug
	.dw '.stabn 0x44,0,54,',0,0
	.dd LM28-_Ext1_IRQ
	.dw 0x0d,0x0a
.code
LM28:
	R2=BP	// QImode move
	R1=BP+1
	R3=2	// QImode move
	R2=R3	// QImode move
	R4=R1	// QImode move
	R2-=[R4]	// subqi3_r0R R2=R2-[R4]
	R3=R2
	R4=0
	R1=_led_buf	// QImode move
	R2=R3	// QImode move
	[BP+3]=R1	// QImode move
	R1=[BP+3]	// QImode move
	R1 = R1 + R2	//addqi3
	[BP+3]=R1	// QImode move
	R1=[BP]	// QImode move
	R2=10	// QImode move
	[SP--]=R2	// QImode move
	[SP--]=R1	// QImode move
	CALL __modu1	// call with return value
	SP = SP + 2	//SP
	R2=[BP+3]	// QImode move
	[R2]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,55,',0,0
	.dd LM29-_Ext1_IRQ
	.dw 0x0d,0x0a
.code
LM29:
	R1=[BP]	// QImode move
	R2=10	// QImode move
	[SP--]=R2	// QImode move
	[SP--]=R1	// QImode move
	CALL __divu1	// call with return value
	SP = SP + 2	//SP
	[BP]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,52,',0,0
	.dd LM30-_Ext1_IRQ
	.dw 0x0d,0x0a
.code
LM30:
L13:
	R1=BP	// QImode move
	R2=BP+1
	R3=BP	// QImode move
	R1=BP+1
	R2=BP	// QImode move
	R3=BP+1
	R4=R3	// QImode move
	R2=[R4]	// QImode move
	R3=R2+1
	R2=R1	// QImode move
	[R2]=R3	// QImode move
	PC=L11	// jump
L12:
.debug
	.dw '.stabn 0x44,0,57,',0,0
	.dd LM31-_Ext1_IRQ
	.dw 0x0d,0x0a
.code
LM31:
	PC=L15	// jump
.debug
	.dw '.stabn 0x44,0,58,',0,0
	.dd LM32-_Ext1_IRQ
	.dw 0x0d,0x0a
.code
LM32:
	R1=2	// QImode move
	[_warning]=R1	// QImode move
	PC=L16	// jump
L15:
.debug
	.dw '.stabn 0x44,0,59,',0,0
	.dd LM33-_Ext1_IRQ
	.dw 0x0d,0x0a
.code
LM33:
	R1=[_Speed]	// QImode move
	CMP R1,360	// QImode compare
	NSJNA L16	//QImode LEU
.debug
	.dw '.stabn 0x44,0,60,',0,0
	.dd LM34-_Ext1_IRQ
	.dw 0x0d,0x0a
.code
LM34:
	R1=3	// QImode move
	[_warning]=R1	// QImode move
L17:
L16:
.debug
	.dw '.stabn 0x44,0,61,',0,0
	.dd LM35-_Ext1_IRQ
	.dw 0x0d,0x0a
.code
LM35:
LBE2:
.debug
	.dw '.stabn 0x44,0,61,',0,0
	.dd LM36-_Ext1_IRQ
	.dw 0x0d,0x0a
.code
LM36:
L10:

	SP+=4
	POP BP from [SP]
	RETF
	.endp	// end of Ext1_IRQ

.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB2-_Ext1_IRQ
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabs "b:4",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "j:4",128,0,0,1',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE2-_Ext1_IRQ
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabf ',0,0
	.dd LME3-_Ext1_IRQ
	.dw 0x0d,0x0a
.code
LME3:
.external _warning
.external _Speed
.external _Time
.external _led_buf
.external _DispTbl
.external _delay
.external _ch_num
.external _numb
.external _flat
.external _i
.external __divu1
.external __modu1
.external __divi2
.external __lshiu1
	.end

⌨️ 快捷键说明

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