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

📄 main.asm

📁 利用凌阳A061单片机实现制作而成的温度控制器
💻 ASM
📖 第 1 页 / 共 4 页
字号:
LM151:
	R1=[_RES_T051_16K_SA]	// QImode move
	[BP]=R1	// QImode move
	pc=L84	// jump
L91:
.debug
	.dw '.stabn 0x44,0,327,',0,0
	.dd LM152-_speech_start_address
	.dw 0x0d,0x0a
.code
LM152:
	R1=[_RES_T052_16K_SA]	// QImode move
	[BP]=R1	// QImode move
	pc=L84	// jump
L92:
.debug
	.dw '.stabn 0x44,0,328,',0,0
	.dd LM153-_speech_start_address
	.dw 0x0d,0x0a
.code
LM153:
	R1=[_RES_T053_16K_SA]	// QImode move
	[BP]=R1	// QImode move
	pc=L84	// jump
L93:
.debug
	.dw '.stabn 0x44,0,329,',0,0
	.dd LM154-_speech_start_address
	.dw 0x0d,0x0a
.code
LM154:
	R1=[_RES_T054_16K_SA]	// QImode move
	[BP]=R1	// QImode move
	pc=L84	// jump
L94:
.debug
	.dw '.stabn 0x44,0,330,',0,0
	.dd LM155-_speech_start_address
	.dw 0x0d,0x0a
.code
LM155:
	R1=[_RES_T055_16K_SA]	// QImode move
	[BP]=R1	// QImode move
	pc=L84	// jump
L95:
.debug
	.dw '.stabn 0x44,0,331,',0,0
	.dd LM156-_speech_start_address
	.dw 0x0d,0x0a
.code
LM156:
	R1=[_RES_T056_16K_SA]	// QImode move
	[BP]=R1	// QImode move
	pc=L84	// jump
L96:
.debug
	.dw '.stabn 0x44,0,332,',0,0
	.dd LM157-_speech_start_address
	.dw 0x0d,0x0a
.code
LM157:
	R1=[_RES_T034_16K_SA]	// QImode move
	[BP]=R1	// QImode move
	pc=L84	// jump
L97:
.debug
	.dw '.stabn 0x44,0,333,',0,0
	.dd LM158-_speech_start_address
	.dw 0x0d,0x0a
.code
LM158:
	pc=L84	// jump
L84:
.debug
	.dw '.stabn 0x44,0,335,',0,0
	.dd LM159-_speech_start_address
	.dw 0x0d,0x0a
.code
LM159:
	R3=[BP]	// QImode move
	R1=R3	// QImode move
	pc=L83	// jump
.debug
	.dw '.stabn 0x44,0,336,',0,0
	.dd LM160-_speech_start_address
	.dw 0x0d,0x0a
.code
LM160:
LBE15:
.debug
	.dw '.stabn 0x44,0,336,',0,0
	.dd LM161-_speech_start_address
	.dw 0x0d,0x0a
.code
LM161:
L83:

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

.debug
	.dw '.stabs "n:p1",160,0,0,4',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB15-_speech_start_address
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabs "iAddress:1",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE15-_speech_start_address
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabf ',0,0
	.dd LME9-_speech_start_address
	.dw 0x0d,0x0a
.code
LME9:
.code
.debug
	.dw '.stabs "speech_end_address:F1",36,0,0,',0,0,offset _speech_end_address,seg _speech_end_address,0x0d,0x0a
.CODE
.public _speech_end_address
_speech_end_address:	.proc
.debug
	.dw '.stabn 0x44,0,346,',0,0
	.dd LM162-_speech_end_address
	.dw 0x0d,0x0a
.code
LM162:
	// total=1, vars=1
	// frame_pointer_needed: 1
	push bp to [sp]
	sp-=1
	bp=sp+1

	R2=BP+4
.debug
	.dw '.stabn 0x44,0,347,',0,0
	.dd LM163-_speech_end_address
	.dw 0x0d,0x0a
.code
LM163:
LBB16:
.debug
	.dw '.stabn 0x44,0,348,',0,0
	.dd LM164-_speech_end_address
	.dw 0x0d,0x0a
.code
LM164:
	R3=R2	// QImode move
	R1=[R3]	// QImode move
	CMP R1,11	// QImode compare
	JNA L116	// QImode GTU
	PC=L114
L116:
	R4=R2	// QImode move
	R1=[R4]	// QImode move
	R3=R1	// QImode move
	R1=R3	// QImode move
	R1=R1+L115
	R4=R1	// QImode move
	R3=[R4]	// QImode move
	pc=R3	// tablejump
.text
L115:
	.dw L102
	.dw L103
	.dw L104
	.dw L105
	.dw L106
	.dw L107
	.dw L108
	.dw L109
	.dw L110
	.dw L111
	.dw L112
	.dw L113
.code
.debug
	.dw '.stabn 0x44,0,349,',0,0
	.dd LM165-_speech_end_address
	.dw 0x0d,0x0a
.code
LM165:
L102:
	R1=[_RES_T046_16K_EA]	// QImode move
	[BP]=R1	// QImode move
	pc=L101	// jump
L103:
.debug
	.dw '.stabn 0x44,0,350,',0,0
	.dd LM166-_speech_end_address
	.dw 0x0d,0x0a
.code
LM166:
	R1=[_RES_T047_16K_EA]	// QImode move
	[BP]=R1	// QImode move
	pc=L101	// jump
L104:
.debug
	.dw '.stabn 0x44,0,351,',0,0
	.dd LM167-_speech_end_address
	.dw 0x0d,0x0a
.code
LM167:
	R1=[_RES_T048_16K_EA]	// QImode move
	[BP]=R1	// QImode move
	pc=L101	// jump
L105:
.debug
	.dw '.stabn 0x44,0,352,',0,0
	.dd LM168-_speech_end_address
	.dw 0x0d,0x0a
.code
LM168:
	R1=[_RES_T049_16K_EA]	// QImode move
	[BP]=R1	// QImode move
	pc=L101	// jump
L106:
.debug
	.dw '.stabn 0x44,0,353,',0,0
	.dd LM169-_speech_end_address
	.dw 0x0d,0x0a
.code
LM169:
	R1=[_RES_T050_16K_EA]	// QImode move
	[BP]=R1	// QImode move
	pc=L101	// jump
L107:
.debug
	.dw '.stabn 0x44,0,354,',0,0
	.dd LM170-_speech_end_address
	.dw 0x0d,0x0a
.code
LM170:
	R1=[_RES_T051_16K_EA]	// QImode move
	[BP]=R1	// QImode move
	pc=L101	// jump
L108:
.debug
	.dw '.stabn 0x44,0,355,',0,0
	.dd LM171-_speech_end_address
	.dw 0x0d,0x0a
.code
LM171:
	R1=[_RES_T052_16K_EA]	// QImode move
	[BP]=R1	// QImode move
	pc=L101	// jump
L109:
.debug
	.dw '.stabn 0x44,0,356,',0,0
	.dd LM172-_speech_end_address
	.dw 0x0d,0x0a
.code
LM172:
	R1=[_RES_T053_16K_EA]	// QImode move
	[BP]=R1	// QImode move
	pc=L101	// jump
L110:
.debug
	.dw '.stabn 0x44,0,357,',0,0
	.dd LM173-_speech_end_address
	.dw 0x0d,0x0a
.code
LM173:
	R1=[_RES_T054_16K_EA]	// QImode move
	[BP]=R1	// QImode move
	pc=L101	// jump
L111:
.debug
	.dw '.stabn 0x44,0,358,',0,0
	.dd LM174-_speech_end_address
	.dw 0x0d,0x0a
.code
LM174:
	R1=[_RES_T055_16K_EA]	// QImode move
	[BP]=R1	// QImode move
	pc=L101	// jump
L112:
.debug
	.dw '.stabn 0x44,0,359,',0,0
	.dd LM175-_speech_end_address
	.dw 0x0d,0x0a
.code
LM175:
	R1=[_RES_T056_16K_EA]	// QImode move
	[BP]=R1	// QImode move
	pc=L101	// jump
L113:
.debug
	.dw '.stabn 0x44,0,360,',0,0
	.dd LM176-_speech_end_address
	.dw 0x0d,0x0a
.code
LM176:
	R1=[_RES_T034_16K_EA]	// QImode move
	[BP]=R1	// QImode move
	pc=L101	// jump
L114:
.debug
	.dw '.stabn 0x44,0,361,',0,0
	.dd LM177-_speech_end_address
	.dw 0x0d,0x0a
.code
LM177:
	pc=L101	// jump
L101:
.debug
	.dw '.stabn 0x44,0,363,',0,0
	.dd LM178-_speech_end_address
	.dw 0x0d,0x0a
.code
LM178:
	R3=[BP]	// QImode move
	R1=R3	// QImode move
	pc=L100	// jump
.debug
	.dw '.stabn 0x44,0,364,',0,0
	.dd LM179-_speech_end_address
	.dw 0x0d,0x0a
.code
LM179:
LBE16:
.debug
	.dw '.stabn 0x44,0,364,',0,0
	.dd LM180-_speech_end_address
	.dw 0x0d,0x0a
.code
LM180:
L100:

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

.debug
	.dw '.stabs "m:p1",160,0,0,4',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB16-_speech_end_address
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabs "iEndAddress:1",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE16-_speech_end_address
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabf ',0,0
	.dd LME10-_speech_end_address
	.dw 0x0d,0x0a
.code
LME10:
.code
.debug
	.dw '.stabs "temperature_speech_play:F19",36,0,0,',0,0,offset _temperature_speech_play,seg _temperature_speech_play,0x0d,0x0a
.CODE
.public _temperature_speech_play
_temperature_speech_play:	.proc
.debug
	.dw '.stabn 0x44,0,375,',0,0
	.dd LM181-_temperature_speech_play
	.dw 0x0d,0x0a
.code
LM181:
	// total=2, vars=2
	// frame_pointer_needed: 1
	push bp to [sp]
	sp-=2
	bp=sp+1

	R1=BP+5
	[bp+1]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,376,',0,0
	.dd LM182-_temperature_speech_play
	.dw 0x0d,0x0a
.code
LM182:
LBB17:
	R1=0	// QImode move
	[BP]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,377,',0,0
	.dd LM183-_temperature_speech_play
	.dw 0x0d,0x0a
.code
LM183:
	call _SP_INT_IRQ6	// call with return value
.debug
	.dw '.stabn 0x44,0,378,',0,0
	.dd LM184-_temperature_speech_play
	.dw 0x0d,0x0a
.code
LM184:
	call _SACM_A2000_TestQueue	// call with return value
	CMP R1,1	// QImode compare
	JNZ L123	// QImode EQ
	PC=L118
L123:
.debug
	.dw '.stabn 0x44,0,380,',0,0
	.dd LM185-_temperature_speech_play
	.dw 0x0d,0x0a
.code
LM185:
LBB18:
	R1=[_iAddrSpeech]	// QImode move
	[SP--]=R1	// QImode move
	call _SP_GetResource	// call with return value
	SP=SP+1
	[_iRet]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,381,',0,0
	.dd LM186-_temperature_speech_play
	.dw 0x0d,0x0a
.code
LM186:
	R1=[_iRet]	// QImode move
	[SP--]=R1	// QImode move
	call _SACM_A2000_FillQueue	// call with return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,382,',0,0
	.dd LM187-_temperature_speech_play
	.dw 0x0d,0x0a
.code
LM187:
	R1=[_iAddrSpeech]	// QImode move
	R2=1	// QImode move
	[_iAddrSpeech]=R1+R2
.debug
	.dw '.stabn 0x44,0,383,',0,0
	.dd LM188-_temperature_speech_play
	.dw 0x0d,0x0a
.code
LM188:
LBE18:
L118:
.debug
	.dw '.stabn 0x44,0,384,',0,0
	.dd LM189-_temperature_speech_play
	.dw 0x0d,0x0a
.code
LM189:
	R1=_iaSpeech_index	// QImode move
	R2=[_iNumber]	// QImode move
	R1+=R2	// addqi3_r0r
	R3=R1	// QImode move
	R2=[R3]	// QImode move
	[SP--]=R2	// QImode move
	call _speech_end_address	// call with return value
	SP=SP+1
	R2=[_iAddrSpeech]	// QImode move
	CMP R2,R1	// QImode compare
	JL L124	// QImode GE
	PC=L119
L124:
.debug
	.dw '.stabn 0x44,0,385,',0,0
	.dd LM190-_temperature_speech_play
	.dw 0x0d,0x0a
.code
LM190:
	call _SACM_A2000_Decoder	// call with return value
	pc=L120	// jump
L119:
.debug
	.dw '.stabn 0x44,0,387,',0,0
	.dd LM191-_temperature_speech_play
	.dw 0x0d,0x0a
.code
LM191:
	R1=[_iPlay_times]	// QImode move
	R2=(-1)	// QImode move
	[_iPlay_times]=R1+R2
.debug
	.dw '.stabn 0x44,0,388,',0,0
	.dd LM192-_temperature_speech_play
	.dw 0x0d,0x0a
.code
LM192:
	R1=[_iPlay_times]	// QImode move
	CMP R1,0	// QImode test
	JZ L125	// QImode NE
	PC=L121
L125:
.debug
	.dw '.stabn 0x44,0,389,',0,0
	.dd LM193-_temperature_speech_play
	.dw 0x0d,0x0a
.code
LM193:
LBB19:
	call _SACM_A2000_Stop	// call with return value
.debug
	.dw '.stabn 0x44,0,390,',0,0
	.dd LM194-_temperature_speech_play
	.dw 0x0d,0x0a
.code
LM194:
	R1=0	// QImode move
	[_guifgSpeechPlay]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,391,',0,0
	.dd LM195-_temperature_speech_play
	.dw 0x0d,0x0a
.code
LM195:
	R1=0	// QImode move
	[_iNumber]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,392,',0,0
	.dd LM196-_temperature_speech_play
	.dw 0x0d,0x0a
.code
LM196:
	call _SP_INT_IRQ6	// call with return value
.debug
	.dw '.stabn 0x44,0,393,',0,0
	.dd LM197-_temperature_speech_play
	.dw 0x0d,0x0a
.code
LM197:
	call _SP_INT_IRQ5	// call with return value
.debug
	.dw '.stabn 0x44,0,394,',0,0
	.dd LM198-_temperature_speech_play
	.dw 0x0d,0x0a
.code
LM198:
	call _ADC_Init	// call with return value
.debug
	.dw '.stabn 0x44,0,395,',0,0
	.dd LM199-_temperature_speech_play
	.dw 0x0d,0x0a
.code
LM199:
LBE19:
	pc=L120	// jump
L121:
.debug
	.dw '.stabn 0x44,0,397,',0,0
	.dd LM200-_temperature_speech_play
	.dw 0x0d,0x0a
.code
LM200:
LBB20:
	R1=[_iNumber]	// QImode move
	R2=1	// QImode move
	[_iNumber]=R1+R2
.debug
	.dw '.stabn 0x44,0,398,',0,0
	.dd LM201-_temperature_speech_play
	.dw 0x0d,0x0a
.code
LM201:
	R1=_iaSpeech_index	// QImode move
	R2=[_iNumber]	// QImode move
	R1+=R2	// addqi3_r0r
	R3=R1	// QImode move
	R2=[R3]	// QImode move
	[SP--]=R2	// QImode move
	call _speech_start_address	// call with return value
	SP=SP+1
	[_iAddrSpeech]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,399,',0,0
	.dd LM202-_temperature_speech_play
	.dw 0x0d,0x0a
.code
LM202:
	R1=2	// QImode move
	[SP--]=R1	// QImode move
	call _SACM_A2000_InitDecoder	// call with return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,401,',0,0
	.dd LM203-_temperature_speech_play
	.dw 0x0d,0x0a
.code
LM203:
LBE20:
L122:
L120:
.debug
	.dw '.stabn 0x44,0,403,',0,0
	.dd LM204-_temperature_speech_play
	.dw 0x0d,0x0a
.code
LM204:
LBE17:
.debug
	.dw '.stabn 0x44,0,403,',0,0
	.dd LM205-_temperature_speech_play
	.dw 0x0d,0x0a
.code
LM205:
L117:

	sp+=2
	pop bp from [sp]
	retf
	.endp	// end of temperature_speech_play

.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB17-_temperature_speech_play
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabs "k:1",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB18-_temperature_speech_play
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE18-_temperature_speech_play
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB19-_temperature_speech_play
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE19-_temperature_speech_play
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB20-_temperature_speech_play
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE20-_temperature_speech_play
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE17-_temperature_speech_play
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabf ',0,0
	.dd LME11-_temperature_speech_play
	.dw 0x0d,0x0a
.code
LME11:
.debug
	.dw '.stabs "iRet:G1",32,0,0,',0,0,offset _iRet,seg _iRet,0x0d,0x0a
.CODE
.ram
.public _iRet
_iRet:
	.dw 0
.debug
	.dw '.stabs "iaSpeech_index:G26=ar1;0;3;1",32,0,0,',0,0,offset _iaSpeech_index,seg _iaSpeech_index,0x0d,0x0a
.CODE
.ram
.public _iaSpeech_index
_iaSpeech_index:
	.dw 4 dup(0)
.debug
	.dw '.stabs "guifgSpeechPlay:G4",32,0,0,',0,0,offset _guifgSpeechPlay,seg _guifgSpeechPlay,0x0d,0x0a
.CODE
.ram
.public _guifgSpeechPlay
_guifgSpeechPlay:
	.dw 0
.debug
	.dw '.stabs "stPID:G21",32,0,0,',0,0,offset _stPID,seg _stPID,0x0d,0x0a
.CODE
.ram
.public _stPID
_stPID:
	.dw 10 dup(0)
.debug
	.dw '.stabs "status:G22",32,0,0,',0,0,offset _status,seg _status,0x0d,0x0a
.CODE
.ram
.public _status
_status:
	.dw 0
.debug
	.dw '.stabs "giADC_DataSave:G27=ar1;0;10;4",32,0,0,',0,0,offset _giADC_DataSave,seg _giADC_DataSave,0x0d,0x0a
.CODE
.ram
.public _giADC_DataSave
_giADC_DataSave:
	.dw 11 dup(0)
.debug
	.dw '.stabs "iAddrSpeech:G1",32,0,0,',0,0,offset _iAddrSpeech,seg _iAddrSpeech,0x0d,0x0a
.CODE
.ram
.public _iAddrSpeech
_iAddrSpeech:
	.dw 0
.external _SACM_A2000_InitDecoder
.external _ADC_Init
.external _SP_INT_IRQ5
.external _SACM_A2000_Stop
.external _SACM_A2000_Decoder
.external _SACM_A2000_FillQueue
.external _SP_GetResource
.external _SACM_A2000_TestQueue
.external _SP_INT_IRQ6
.external _RES_T034_16K_EA
.external _RES_T056_16K_EA
.external _RES_T055_16K_EA
.external _RES_T054_16K_EA
.external _RES_T053_16K_EA
.external _RES_T052_16K_EA
.external _RES_T051_16K_EA
.external _RES_T050_16K_EA
.external _RES_T049_16K_EA
.external _RES_T048_16K_EA
.external _RES_T047_16K_EA
.external _RES_T046_16K_EA
.external _RES_T034_16K_SA
.external _RES_T056_16K_SA
.external _RES_T055_16K_SA
.external _RES_T054_16K_SA
.external _RES_T053_16K_SA
.external _RES_T052_16K_SA
.external _RES_T051_16K_SA
.external _RES_T050_16K_SA
.external _RES_T049_16K_SA
.external _RES_T048_16K_SA
.external _RES_T047_16K_SA
.external _RES_T046_16K_SA
.external _turn_off_IRQ5
.external _SP_INT_TIMEB
.external _turn_on_relay
.external _turn_off_timerB
.external _turn_off_relay
.external _SACM_A2000_Initial
.external _G_ADC_flag
.external _System_ServiceLoop
.external _Clear_WatchDog
.external _SP_GetCh
.external _System_Initial
.external __cmpf2
.external __mulf2
.external __cvi1f2
.external __cvf2i1
.external __modi1
.external __divi1
.external __addf2
	.end

⌨️ 快捷键说明

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