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

📄 main.asm

📁 关于凌阳单片机的应用--语音播报电子钟。功能为实时当前的时间。
💻 ASM
📖 第 1 页 / 共 4 页
字号:
LM137:
	R1=1	// QImode move
	[_KeyStatus]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,281,',0,0
	.dd LM138-_main
	.dw 0x0d,0x0a
.code
LM138:
	R1=0	// QImode move
	[_KeyAdjust]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,282,',0,0
	.dd LM139-_main
	.dw 0x0d,0x0a
.code
LM139:
	R1=0	// QImode move
	[_TimeCount]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,283,',0,0
	.dd LM140-_main
	.dw 0x0d,0x0a
.code
LM140:
	call _Start256HzRTC	// call with return value
.debug
	.dw '.stabn 0x44,0,284,',0,0
	.dd LM141-_main
	.dw 0x0d,0x0a
.code
LM141:
	R1=[_KeyAdjust]	// QImode move
	[SP--]=R1	// QImode move
	call _PlayAdjustTime	// call with return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,285,',0,0
	.dd LM142-_main
	.dw 0x0d,0x0a
.code
LM142:
LBE9:
L119:
L118:
L116:
.debug
	.dw '.stabn 0x44,0,289,',0,0
	.dd LM143-_main
	.dw 0x0d,0x0a
.code
LM143:
	R1=[_KeyStatus]	// QImode move
	CMP R1,1	// QImode compare
	JZ L151	// QImode NE
	PC=L120
L151:
.debug
	.dw '.stabn 0x44,0,291,',0,0
	.dd LM144-_main
	.dw 0x0d,0x0a
.code
LM144:
	R1=[_Key]	// QImode move
	CMP R1,2	// QImode compare
	JNZ L152	// QImode EQ
	PC=L125
L152:
	CMP R1,2	// QImode compare
	JNA L153	// QImode GTU
	PC=L129
L153:
	CMP R1,1	// QImode compare
	JNZ L154	// QImode EQ
	PC=L122
L154:
	pc=L127	// jump
L129:
	CMP R1,4	// QImode compare
	JNZ L155	// QImode EQ
	PC=L126
L155:
	pc=L127	// jump
.debug
	.dw '.stabn 0x44,0,293,',0,0
	.dd LM145-_main
	.dw 0x0d,0x0a
.code
LM145:
LBB10:
L122:
.debug
	.dw '.stabn 0x44,0,294,',0,0
	.dd LM146-_main
	.dw 0x0d,0x0a
.code
LM146:
	R1=[_KeyAdjust]	// QImode move
	R2=1	// QImode move
	[_KeyAdjust]=R1+R2
.debug
	.dw '.stabn 0x44,0,295,',0,0
	.dd LM147-_main
	.dw 0x0d,0x0a
.code
LM147:
	R1=[_KeyAdjust]	// QImode move
	CMP R1,5	// QImode compare
	JZ L156	// QImode NE
	PC=L123
L156:
.debug
	.dw '.stabn 0x44,0,297,',0,0
	.dd LM148-_main
	.dw 0x0d,0x0a
.code
LM148:
LBB11:
	R1=0	// QImode move
	[_KeyStatus]=R1	// QImode move
	R1=0	// QImode move
	[_KeyAdjust]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,298,',0,0
	.dd LM149-_main
	.dw 0x0d,0x0a
.code
LM149:
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	call _PlayAdjustTime	// call with return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,299,',0,0
	.dd LM150-_main
	.dw 0x0d,0x0a
.code
LM150:
	R1=1	// QImode move
	[SP--]=R1	// QImode move
	call _PlayAdjustTime	// call with return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,300,',0,0
	.dd LM151-_main
	.dw 0x0d,0x0a
.code
LM151:
	R1=2	// QImode move
	[SP--]=R1	// QImode move
	call _PlayAdjustTime	// call with return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,301,',0,0
	.dd LM152-_main
	.dw 0x0d,0x0a
.code
LM152:
	R1=3	// QImode move
	[SP--]=R1	// QImode move
	call _PlayAdjustTime	// call with return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,302,',0,0
	.dd LM153-_main
	.dw 0x0d,0x0a
.code
LM153:
	R1=4	// QImode move
	[SP--]=R1	// QImode move
	call _PlayAdjustTime	// call with return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,303,',0,0
	.dd LM154-_main
	.dw 0x0d,0x0a
.code
LM154:
	call _Stop256HzRTC	// call with return value
.debug
	.dw '.stabn 0x44,0,304,',0,0
	.dd LM155-_main
	.dw 0x0d,0x0a
.code
LM155:
LBE11:
	pc=L124	// jump
L123:
.debug
	.dw '.stabn 0x44,0,306,',0,0
	.dd LM156-_main
	.dw 0x0d,0x0a
.code
LM156:
	R1=[_KeyAdjust]	// QImode move
	[SP--]=R1	// QImode move
	call _PlayAdjustTime	// call with return value
	SP=SP+1
L124:
.debug
	.dw '.stabn 0x44,0,307,',0,0
	.dd LM157-_main
	.dw 0x0d,0x0a
.code
LM157:
	R1=0	// QImode move
	[_Key]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,308,',0,0
	.dd LM158-_main
	.dw 0x0d,0x0a
.code
LM158:
	R1=0	// QImode move
	[_TimeCount]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,309,',0,0
	.dd LM159-_main
	.dw 0x0d,0x0a
.code
LM159:
	R1=0	// QImode move
	[_TimeChangeKey]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,310,',0,0
	.dd LM160-_main
	.dw 0x0d,0x0a
.code
LM160:
	pc=L121	// jump
L125:
.debug
	.dw '.stabn 0x44,0,313,',0,0
	.dd LM161-_main
	.dw 0x0d,0x0a
.code
LM161:
	R1=[_KeyAdjust]	// QImode move
	[SP--]=R1	// QImode move
	call _Adjust_Time_Up	// call with return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,314,',0,0
	.dd LM162-_main
	.dw 0x0d,0x0a
.code
LM162:
	R1=0	// QImode move
	[_TimeChangeCount]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,315,',0,0
	.dd LM163-_main
	.dw 0x0d,0x0a
.code
LM163:
	R1=1	// QImode move
	[_TimeChangeKey]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,316,',0,0
	.dd LM164-_main
	.dw 0x0d,0x0a
.code
LM164:
	R1=0	// QImode move
	[_TimeCount]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,317,',0,0
	.dd LM165-_main
	.dw 0x0d,0x0a
.code
LM165:
	R1=0	// QImode move
	[_Key]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,318,',0,0
	.dd LM166-_main
	.dw 0x0d,0x0a
.code
LM166:
	pc=L121	// jump
L126:
.debug
	.dw '.stabn 0x44,0,321,',0,0
	.dd LM167-_main
	.dw 0x0d,0x0a
.code
LM167:
	R1=[_KeyAdjust]	// QImode move
	[SP--]=R1	// QImode move
	call _Adjust_Time_Down	// call with return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,322,',0,0
	.dd LM168-_main
	.dw 0x0d,0x0a
.code
LM168:
	R1=0	// QImode move
	[_TimeChangeCount]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,323,',0,0
	.dd LM169-_main
	.dw 0x0d,0x0a
.code
LM169:
	R1=1	// QImode move
	[_TimeChangeKey]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,324,',0,0
	.dd LM170-_main
	.dw 0x0d,0x0a
.code
LM170:
	R1=0	// QImode move
	[_TimeCount]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,325,',0,0
	.dd LM171-_main
	.dw 0x0d,0x0a
.code
LM171:
	R1=0	// QImode move
	[_Key]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,326,',0,0
	.dd LM172-_main
	.dw 0x0d,0x0a
.code
LM172:
	pc=L121	// jump
L127:
.debug
	.dw '.stabn 0x44,0,329,',0,0
	.dd LM173-_main
	.dw 0x0d,0x0a
.code
LM173:
	pc=L121	// jump
.debug
	.dw '.stabn 0x44,0,330,',0,0
	.dd LM174-_main
	.dw 0x0d,0x0a
.code
LM174:
LBE10:
L121:
.debug
	.dw '.stabn 0x44,0,331,',0,0
	.dd LM175-_main
	.dw 0x0d,0x0a
.code
LM175:
	R1=[_TimeChangeKey]	// QImode move
	CMP R1,1	// QImode compare
	JZ L157	// QImode NE
	PC=L130
L157:
	R1=[_TimeChangeCount]	// QImode move
	CMP R1,40	// QImode compare
	JA L158	// QImode LEU
	PC=L130
L158:
.debug
	.dw '.stabn 0x44,0,333,',0,0
	.dd LM176-_main
	.dw 0x0d,0x0a
.code
LM176:
	R1=0	// QImode move
	[_TimeChangeKey]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,334,',0,0
	.dd LM177-_main
	.dw 0x0d,0x0a
.code
LM177:
	R1=[_KeyAdjust]	// QImode move
	[SP--]=R1	// QImode move
	call _PlayAdjustTime	// call with return value
	SP=SP+1
L130:
.debug
	.dw '.stabn 0x44,0,337,',0,0
	.dd LM178-_main
	.dw 0x0d,0x0a
.code
LM178:
	R1=[_TimeCount]	// QImode move
	CMP R1,120	// QImode compare
	JA L159	// QImode LEU
	PC=L120
L159:
.debug
	.dw '.stabn 0x44,0,339,',0,0
	.dd LM179-_main
	.dw 0x0d,0x0a
.code
LM179:
	R1=0	// QImode move
	[_KeyStatus]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,340,',0,0
	.dd LM180-_main
	.dw 0x0d,0x0a
.code
LM180:
	R1=0	// QImode move
	[_KeyAdjust]=R1	// QImode move
L131:
L120:
.debug
	.dw '.stabn 0x44,0,344,',0,0
	.dd LM181-_main
	.dw 0x0d,0x0a
.code
LM181:
	call _Calendar_Counter	// call with return value
.debug
	.dw '.stabn 0x44,0,345,',0,0
	.dd LM182-_main
	.dw 0x0d,0x0a
.code
LM182:
	R1=[_SecondAddOne]	// QImode move
	CMP R1,(-1)	// QImode compare
	JZ L160	// QImode NE
	PC=L132
L160:
.debug
	.dw '.stabn 0x44,0,347,',0,0
	.dd LM183-_main
	.dw 0x0d,0x0a
.code
LM183:
LBB12:
	R1=0	// QImode move
	[_SecondAddOne]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,348,',0,0
	.dd LM184-_main
	.dw 0x0d,0x0a
.code
LM184:
	call _ReadRealHourMin	// call with return value
	[_HourMinTemp]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,349,',0,0
	.dd LM185-_main
	.dw 0x0d,0x0a
.code
LM185:
	R1=0	// QImode move
	[_i]=R1	// QImode move
L133:
	R1=[_i]	// QImode move
	CMP R1,15	// QImode compare
	JA L161	// QImode LEU
	PC=L136
L161:
	pc=L132	// jump
L136:
.debug
	.dw '.stabn 0x44,0,350,',0,0
	.dd LM186-_main
	.dw 0x0d,0x0a
.code
LM186:
	R1=_gTimeVSShem	// QImode move
	R2=[_i]	// QImode move
	R1+=R2	// addqi3_r0r
	R2=[_HourMinTemp]	// QImode move
	R3=R1	// QImode move
	CMP R2,[R3]	// QImode compare
	JZ L162	// QImode NE
	PC=L135
L162:
.debug
	.dw '.stabn 0x44,0,352,',0,0
	.dd LM187-_main
	.dw 0x0d,0x0a
.code
LM187:
	R1=0	// QImode move
	[_j]=R1	// QImode move
L138:
	R1=[_j]	// QImode move
	CMP R1,14	// QImode compare
	JA L163	// QImode LEU
	PC=L141
L163:
	pc=L139	// jump
L141:
.debug
	.dw '.stabn 0x44,0,354,',0,0
	.dd LM188-_main
	.dw 0x0d,0x0a
.code
LM188:
LBB13:
	call _LightOn	// call with return value
.debug
	.dw '.stabn 0x44,0,355,',0,0
	.dd LM189-_main
	.dw 0x0d,0x0a
.code
LM189:
	call _Delay3ms	// call without return value
.debug
	.dw '.stabn 0x44,0,356,',0,0
	.dd LM190-_main
	.dw 0x0d,0x0a
.code
LM190:
	call _LightOff	// call with return value
.debug
	.dw '.stabn 0x44,0,357,',0,0
	.dd LM191-_main
	.dw 0x0d,0x0a
.code
LM191:
	call _Delay3ms	// call without return value
.debug
	.dw '.stabn 0x44,0,358,',0,0
	.dd LM192-_main
	.dw 0x0d,0x0a
.code
LM192:
LBE13:
.debug
	.dw '.stabn 0x44,0,352,',0,0
	.dd LM193-_main
	.dw 0x0d,0x0a
.code
LM193:
L140:
	R1=[_j]	// QImode move
	R2=1	// QImode move
	[_j]=R1+R2
	pc=L138	// jump
L139:
.debug
	.dw '.stabn 0x44,0,359,',0,0
	.dd LM194-_main
	.dw 0x0d,0x0a
.code
LM194:
	pc=L132	// jump
L137:
.debug
	.dw '.stabn 0x44,0,349,',0,0
	.dd LM195-_main
	.dw 0x0d,0x0a
.code
LM195:
L135:
	R1=[_i]	// QImode move
	R2=1	// QImode move
	[_i]=R1+R2
	pc=L133	// jump
L134:
.debug
	.dw '.stabn 0x44,0,361,',0,0
	.dd LM196-_main
	.dw 0x0d,0x0a
.code
LM196:
LBE12:
L132:
.debug
	.dw '.stabn 0x44,0,363,',0,0
	.dd LM197-_main
	.dw 0x0d,0x0a
.code
LM197:
	R1=[_SleepFlag]	// QImode move
	CMP R1,1	// QImode compare
	JZ L164	// QImode NE
	PC=L142
L164:
	R1=[_KeyStatus]	// QImode move
	CMP R1,0	// QImode test
	JZ L165	// QImode NE
	PC=L142
L165:
.debug
	.dw '.stabn 0x44,0,364,',0,0
	.dd LM198-_main
	.dw 0x0d,0x0a
.code
LM198:
	call _SP_GoSleep	// call with return value
L142:
.debug
	.dw '.stabn 0x44,0,365,',0,0
	.dd LM199-_main
	.dw 0x0d,0x0a
.code
LM199:
LBE8:
	pc=L111	// jump
L112:
.debug
	.dw '.stabn 0x44,0,366,',0,0
	.dd LM200-_main
	.dw 0x0d,0x0a
.code
LM200:
LBE7:
.debug
	.dw '.stabn 0x44,0,366,',0,0
	.dd LM201-_main
	.dw 0x0d,0x0a
.code
LM201:
L110:

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

.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB7-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB8-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB9-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE9-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB10-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB11-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE11-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE10-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB12-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB13-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE13-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE12-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE8-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE7-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabf ',0,0
	.dd LME11-_main
	.dw 0x0d,0x0a
.code
LME11:
.external _SP_GoSleep
.external _LightOff
.external _LightOn
.external _ReadRealHourMin
.external _Calendar_Counter
.external _Adjust_Time_Down
.external _Adjust_Time_Up
.external _Stop256HzRTC
.external _Start256HzRTC
.external _Key_Scan_ServiceLoop
.external _System_Initial
.external _ReadRealMonthDay
.external _ReadRealYear
.external _SACM_A2000_Stop
.external _SACM_A2000_ServiceLoop
.external _Clear_WatchDog
.external _SACM_A2000_Status
.external _SACM_A2000_Play
.external _SACM_A2000_Initial
.external __modi1
.external __divi1
.external __rshu1
	.end

⌨️ 快捷键说明

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