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

📄 main.asm

📁 基于凌阳单片机的语音小车。可用于特定人的语音识别系统
💻 ASM
📖 第 1 页 / 共 5 页
字号:
	.dd LM159-_main
	.dw 0x0d,0x0a
.code
LM159:
	R1=BP	// QImode move
	R2=BP+5
	R3=R2	// QImode move
	R1=[R3]	// QImode move
	R2=1	// QImode move
	R4=R1	// QImode move
	[R4]=R2	// QImode move
.debug
	.dw '.stabn 0x44,0,261,',0,0
	.dd LM160-_main
	.dw 0x0d,0x0a
.code
LM160:
	R1=BP	// QImode move
	R2=BP+3
	R1=(-5377)	// QImode move
	R3=R2	// QImode move
	[R3]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,262,',0,0
	.dd LM161-_main
	.dw 0x0d,0x0a
.code
LM161:
	R1=0	// QImode move
	[_gActivated]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,263,',0,0
	.dd LM162-_main
	.dw 0x0d,0x0a
.code
LM162:
	pc=L72	// jump
L93:
.debug
	.dw '.stabn 0x44,0,265,',0,0
	.dd LM163-_main
	.dw 0x0d,0x0a
.code
LM163:
	R1=255	// QImode move
	[SP--]=R1	// QImode move
	R1=(-256)	// QImode move
	[SP--]=R1	// QImode move
	R1=(-256)	// QImode move
	[SP--]=R1	// QImode move
	call _SP_Init_IOB	// call with return value
	SP=SP+3
.debug
	.dw '.stabn 0x44,0,266,',0,0
	.dd LM164-_main
	.dw 0x0d,0x0a
.code
LM164:
	R1=(-513)	// QImode move
	[SP--]=R1	// QImode move
	R1=28677	// QImode move
	[SP--]=R1	// QImode move
	call _SP_Export	// call with return value
	SP=SP+2
.debug
	.dw '.stabn 0x44,0,267,',0,0
	.dd LM165-_main
	.dw 0x0d,0x0a
.code
LM165:
	R2=BP	// QImode move
	R1=BP+4
	R2=BP	// QImode move
	R3=BP+4
	R4=R3	// QImode move
	R2=[R4]	// QImode move
	R3=R2+1
	R2=R1	// QImode move
	[R2]=R3	// QImode move
.debug
	.dw '.stabn 0x44,0,268,',0,0
	.dd LM166-_main
	.dw 0x0d,0x0a
.code
LM166:
	R1=BP	// QImode move
	R2=BP+7
	R1=0	// QImode move
	R3=R2	// QImode move
	[R3]=R1	// QImode move
L94:
	R1=BP	// QImode move
	R2=BP+7
	R4=R2	// QImode move
	R1=[R4]	// QImode move
	CMP R1,2	// QImode compare
	JA L129	// QImode LEU
	PC=L97
L129:
	pc=L95	// jump
L97:
.debug
	.dw '.stabn 0x44,0,270,',0,0
	.dd LM167-_main
	.dw 0x0d,0x0a
.code
LM167:
LBB15:
	call _F_Delay	// call with return value
.debug
	.dw '.stabn 0x44,0,271,',0,0
	.dd LM168-_main
	.dw 0x0d,0x0a
.code
LM168:
	R1=BP	// QImode move
	R2=BP+5
	R3=R2	// QImode move
	R1=[R3]	// QImode move
	R2=1	// QImode move
	R4=R1	// QImode move
	[R4]=R2	// QImode move
.debug
	.dw '.stabn 0x44,0,272,',0,0
	.dd LM169-_main
	.dw 0x0d,0x0a
.code
LM169:
LBE15:
.debug
	.dw '.stabn 0x44,0,268,',0,0
	.dd LM170-_main
	.dw 0x0d,0x0a
.code
LM170:
L96:
	R1=BP	// QImode move
	R2=BP+7
	R3=BP	// QImode move
	R1=BP+7
	R2=BP	// QImode move
	R3=BP+7
	R4=R3	// QImode move
	R2=[R4]	// QImode move
	R3=R2+1
	R2=R1	// QImode move
	[R2]=R3	// QImode move
	pc=L94	// jump
L95:
.debug
	.dw '.stabn 0x44,0,273,',0,0
	.dd LM171-_main
	.dw 0x0d,0x0a
.code
LM171:
	R1=1	// QImode move
	[_PlayFlag]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,274,',0,0
	.dd LM172-_main
	.dw 0x0d,0x0a
.code
LM172:
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	call _PlayRespond2	// call without return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,275,',0,0
	.dd LM173-_main
	.dw 0x0d,0x0a
.code
LM173:
	R1=0	// QImode move
	[_PlayFlag]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,276,',0,0
	.dd LM174-_main
	.dw 0x0d,0x0a
.code
LM174:
	R1=BP	// QImode move
	R2=BP+5
	R3=R2	// QImode move
	R1=[R3]	// QImode move
	R2=1	// QImode move
	R4=R1	// QImode move
	[R4]=R2	// QImode move
.debug
	.dw '.stabn 0x44,0,278,',0,0
	.dd LM175-_main
	.dw 0x0d,0x0a
.code
LM175:
	R1=BP	// QImode move
	R2=BP+3
	R1=(-513)	// QImode move
	R3=R2	// QImode move
	[R3]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,279,',0,0
	.dd LM176-_main
	.dw 0x0d,0x0a
.code
LM176:
	R1=0	// QImode move
	[_gActivated]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,280,',0,0
	.dd LM177-_main
	.dw 0x0d,0x0a
.code
LM177:
	pc=L72	// jump
L99:
L72:
.debug
	.dw '.stabn 0x44,0,282,',0,0
	.dd LM178-_main
	.dw 0x0d,0x0a
.code
LM178:
	pc=L100	// jump
L71:
.debug
	.dw '.stabn 0x44,0,285,',0,0
	.dd LM179-_main
	.dw 0x0d,0x0a
.code
LM179:
	R1=[BP]	// QImode move
	CMP R1,256	// QImode compare
	JZ L130	// QImode NE
	PC=L100
L130:
.debug
	.dw '.stabn 0x44,0,287,',0,0
	.dd LM180-_main
	.dw 0x0d,0x0a
.code
LM180:
	R1=BP	// QImode move
	R2=BP+5
	R4=R2	// QImode move
	R1=[R4]	// QImode move
	R2=1	// QImode move
	R3=R1	// QImode move
	[R3]=R2	// QImode move
.debug
	.dw '.stabn 0x44,0,288,',0,0
	.dd LM181-_main
	.dw 0x0d,0x0a
.code
LM181:
	R1=BP	// QImode move
	R2=BP+2
	R1=_gTriggerRespond	// QImode move
	R4=R2	// QImode move
	R2=[R4]	// QImode move
	R1+=R2	// addqi3_r0r
	R3=R1	// QImode move
	R2=[R3]	// QImode move
	[SP--]=R2	// QImode move
	call _PlayRespond	// call without return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,289,',0,0
	.dd LM182-_main
	.dw 0x0d,0x0a
.code
LM182:
	R1=1	// QImode move
	[_gActivated]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,290,',0,0
	.dd LM183-_main
	.dw 0x0d,0x0a
.code
LM183:
	R1=BP	// QImode move
	R2=BP+1
	R1=0	// QImode move
	R4=R2	// QImode move
	[R4]=R1	// QImode move
L101:
L100:
.debug
	.dw '.stabn 0x44,0,293,',0,0
	.dd LM184-_main
	.dw 0x0d,0x0a
.code
LM184:
	pc=L102	// jump
L70:
.debug
	.dw '.stabn 0x44,0,294,',0,0
	.dd LM185-_main
	.dw 0x0d,0x0a
.code
LM185:
	R1=[_gActivated]	// QImode move
	CMP R1,0	// QImode test
	JNZ L131	// QImode EQ
	PC=L102
L131:
.debug
	.dw '.stabn 0x44,0,296,',0,0
	.dd LM186-_main
	.dw 0x0d,0x0a
.code
LM186:
	R1=BP	// QImode move
	R2=BP+1
	R3=BP	// QImode move
	R1=BP+1
	R2=BP	// QImode move
	R3=BP+1
	R2=R3	// QImode move
	R4=[R2]	// QImode move
	R2=R4+1
	R3=R2	// QImode move
	R4=R1	// QImode move
	[R4]=R3	// QImode move
	CMP R3,450	// QImode compare
	JG L132	// QImode LE
	PC=L102
L132:
.debug
	.dw '.stabn 0x44,0,298,',0,0
	.dd LM187-_main
	.dw 0x0d,0x0a
.code
LM187:
	R1=BP	// QImode move
	R2=BP+5
	R3=R2	// QImode move
	R1=[R3]	// QImode move
	R2=1	// QImode move
	R4=R1	// QImode move
	[R4]=R2	// QImode move
.debug
	.dw '.stabn 0x44,0,299,',0,0
	.dd LM188-_main
	.dw 0x0d,0x0a
.code
LM188:
	R1=5	// QImode move
	[SP--]=R1	// QImode move
	call _PlayRespond	// call without return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,300,',0,0
	.dd LM189-_main
	.dw 0x0d,0x0a
.code
LM189:
	R1=0	// QImode move
	[_gActivated]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,301,',0,0
	.dd LM190-_main
	.dw 0x0d,0x0a
.code
LM190:
	R1=BP	// QImode move
	R2=BP+1
	R1=0	// QImode move
	R3=R2	// QImode move
	[R3]=R1	// QImode move
L104:
L103:
L102:
.debug
	.dw '.stabn 0x44,0,304,',0,0
	.dd LM191-_main
	.dw 0x0d,0x0a
.code
LM191:
LBE8:
	pc=L47	// jump
L48:
.debug
	.dw '.stabn 0x44,0,305,',0,0
	.dd LM192-_main
	.dw 0x0d,0x0a
.code
LM192:
LBE7:
.debug
	.dw '.stabn 0x44,0,305,',0,0
	.dd LM193-_main
	.dw 0x0d,0x0a
.code
LM193:
L31:

	sp+=10
	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 '.stabs "res:1",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "timeCnt:1",128,0,0,1',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "random_no:1",128,0,0,2',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "iMoveFlag:1",128,0,0,3',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "aFlag:1",128,0,0,4',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "ClearWatchdog:22=*4",128,0,0,5',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "uiIOB:4",128,0,0,6',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "i:4",128,0,0,7',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "p:22",128,0,0,8',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 0xe0,0,0,',0,0
	.dd LBE10-_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 0xc0,0,0,',0,0
	.dd LBB12-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE12-_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 0xc0,0,0,',0,0
	.dd LBB14-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE14-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB15-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE15-_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 LME4-_main
	.dw 0x0d,0x0a
.code
LME4:
.code
.debug
	.dw '.stabs "ShowAndVoic:F1",36,0,0,',0,0,offset _ShowAndVoic,seg _ShowAndVoic,0x0d,0x0a
.CODE
.public _ShowAndVoic
_ShowAndVoic:	.proc
.debug
	.dw '.stabn 0x44,0,308,',0,0
	.dd LM194-_ShowAndVoic
	.dw 0x0d,0x0a
.code
LM194:
	// total=36, vars=36
	// frame_pointer_needed: 1
	push bp to [sp]
	sp-=36
	bp=sp+1

	R1=BP+39
	[bp+16]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,309,',0,0
	.dd LM195-_ShowAndVoic
	.dw 0x0d,0x0a
.code
LM195:
LBB16:
.debug
	.dw '.stabn 0x44,0,310,',0,0
	.dd LM196-_ShowAndVoic
	.dw 0x0d,0x0a
.code
LM196:
	call _car_time	// call with return value
	R2=BP	// QImode move
	R3=BP+2
	R2=R3	// QImode move
	[R2]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,311,',0,0
	.dd LM197-_ShowAndVoic
	.dw 0x0d,0x0a
.code
LM197:
	call _car_long	// call with return value
	R2=BP	// QImode move
	R3=BP+3
	R4=R3	// QImode move
	[R4]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,312,',0,0
	.dd LM198-_ShowAndVoic
	.dw 0x0d,0x0a
.code
LM198:
	R2=BP	// QImode move
	R1=BP+3
	R2=BP	// QImode move
	R3=BP+3
	R4=R3	// QImode move
	R2=[R4]	// QImode move
	R3=15	// QImode move
	[bp+35]=R3	// QImode move
	R3=[bp+35]	// QImode move
	mr=R2*R3	// r3=R2*R3 16bit=16bit*16bit
	R2=R3	// QImode move
	R4=R1	// QImode move
	[R4]=R2	// QImode move
.debug
	.dw '.stabn 0x44,0,313,',0,0
	.dd LM199-_ShowAndVoic
	.dw 0x0d,0x0a
.code
LM199:
	R1=BP	// QImode move
	R1=BP+4
	[bp+17]=R1	// QImode move
	R1=BP	// QImode move
	R2=BP+2
	R3=R2	// QImode move
	R1=[R3]	// QImode move
	R2=10	// QImode move
	[SP--]=R2	// QImode move
	[SP--]=R1	// QImode move
	call __modi1	// call with return value
	SP=SP+2
	R4=[bp+17]	// QImode move
	[R4]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,314,',0,0
	.dd LM200-_ShowAndVoic
	.dw 0x0d,0x0a
.code
LM200:
	R1=BP	// QImode move
	R1=BP+1
	[bp+18]=R1	// QImode move
	R1=BP	// QImode move
	R2=BP+2
	R3=R2	// QImode move
	R1=[R3]	// QImode move
	R2=10	// QImode move
	[SP--]=R2	// QImode move
	[SP--]=R1	// QImode move
	call __divi1	// call with return value
	SP=SP+2
	R4=[bp+18]	// QImode move
	[R4]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,315,',0,0
	.dd LM201-_ShowAndVoic
	.dw 0x0d,0x0a
.code
LM201:
	R1=BP	// QImode move
	R1=BP+5
	[bp+19]=R1	// QImode move
	R1=BP	// QImode move
	R2=BP+1
	R3=R2	// QImode move
	R1=[R3]	// QImode move
	R2=10	// QImode move
	[SP--]=R2	// QImode move
	[SP--]=R1	// QImode move
	call __modi1	// call with return value
	SP=SP+2
	R4=[bp+19]	// QImode move
	[R4]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,316,',0,0
	.dd LM202-_ShowAndVoic
	.dw 0x0d,0x0a
.code
LM202:
	R1=BP	// QImode move
	R1=BP+1
	[bp+20]=R1	// QImode move
	R1=BP	// QImode move
	R2=BP+2
	R3=R2	// QImode move
	R1=[R3]	// QImode move
	R2=100	// QImode move
	[SP--]=R2	// QImode move
	[SP--]=R1	// QImode move
	call __divi1	// call with return value
	SP=SP+2
	R4=[bp+20]	// QImode move
	[R4]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,317,',0,0
	.dd LM203-_ShowAndVoic
	.dw 0x0d,0x0a
.code
LM203:
	R1=BP	// QImode move
	R1=BP+6
	[bp+21]=R1	// QImode move
	R1=BP	// QImode move
	R2=BP+1
	R3=R2	// QImode move
	R1=[R3]	// QImode move
	R2=10	// QImode move
	[SP--]=R2	// QImode move
	[SP--]=R1	// QImode move
	call __modi1	// call with return value
	SP=SP+2
	R4=[bp+21]	// QImode move
	[R4]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,318,',0,0
	.dd LM204-_ShowAndVoic
	.dw 0x0d,0x0a
.code
LM204:
	R1=BP	// QImode move
	R1=BP+1
	[bp+22]=R1	// QImode move
	R1=BP	// QImode move
	R2=BP+2
	R3=R2	// QImode move
	R1=[R3]	// QImode move
	R2=1000	// QImode move
	[SP--]=R2	// QImode move
	[SP--]=R1	// QImode move
	call __divi1	// call with return value
	SP=SP+2
	R4=[bp+22]	// QImode move
	[R4]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,319,',0,0
	.dd LM205-_ShowAndVoic
	.dw 0x0d,0x0a
.code
LM205:
	R1=BP	// QImode move
	R1=BP+7
	[bp+23]=R1	// QImode move
	R1=BP	// QImode move

⌨️ 快捷键说明

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