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

📄 main.asm

📁 基于凌阳的大名鼎鼎的杰克机器人代码。
💻 ASM
📖 第 1 页 / 共 3 页
字号:
.code
LM113:
	R1=4	// QImode move
	[SP--]=R1	// QImode move
	call _Robot_Shoot_Prepare	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,215,',0,0
	.dd LM114-_main
	.dw 0x0d,0x0a
.code
LM114:
	R1=1500	// QImode move
	[SP--]=R1	// QImode move
	call _Delay	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,216,',0,0
	.dd LM115-_main
	.dw 0x0d,0x0a
.code
LM115:
	R1=2	// QImode move
	[SP--]=R1	// QImode move
	call _Robot_Shoot2	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,217,',0,0
	.dd LM116-_main
	.dw 0x0d,0x0a
.code
LM116:
	R1=(-2304)	// QImode move
	[SP--]=R1	// QImode move
	call _ImportFiveCommand	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,218,',0,0
	.dd LM117-_main
	.dw 0x0d,0x0a
.code
LM117:
	R1=BP	// QImode move
	R2=BP+4
	R1=0	// QImode move
	R3=R2	// QImode move
	[R3]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,219,',0,0
	.dd LM118-_main
	.dw 0x0d,0x0a
.code
LM118:
	R1=BP	// QImode move
	R2=BP+2
	R1=0	// QImode move
	R4=R2	// QImode move
	[R4]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,220,',0,0
	.dd LM119-_main
	.dw 0x0d,0x0a
.code
LM119:
	pc=L4	// Indirect jump
.debug
	.dw '.stabn 0x44,0,221,',0,0
	.dd LM120-_main
	.dw 0x0d,0x0a
.code
LM120:
	pc=L33	// Indirect jump
L38:
L33:
.debug
	.dw '.stabn 0x44,0,223,',0,0
	.dd LM121-_main
	.dw 0x0d,0x0a
.code
LM121:
	R1=1	// QImode move
	[28690]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,224,',0,0
	.dd LM122-_main
	.dw 0x0d,0x0a
.code
LM122:
	R1=BP	// QImode move
	R2=BP+2
	R1=0	// QImode move
	R3=R2	// QImode move
	[R3]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,225,',0,0
	.dd LM123-_main
	.dw 0x0d,0x0a
.code
LM123:
	pc=L10	// Indirect jump
L39:
.debug
	.dw '.stabn 0x44,0,229,',0,0
	.dd LM124-_main
	.dw 0x0d,0x0a
.code
LM124:
	R1=BP	// QImode move
	R2=BP+4
	R4=R2	// QImode move
	R1=[R4]	// QImode move
	CMP R1,1	// QImode compare
	NSJZ L42	//QImode EQ
	CMP R1,1	// QImode compare
	NSJB L41	//QImode LTU
	CMP R1,2	// QImode compare
	NSJZ L43	//QImode EQ
	pc=L40	// Indirect jump
L41:
.debug
	.dw '.stabn 0x44,0,234,',0,0
	.dd LM125-_main
	.dw 0x0d,0x0a
.code
LM125:
	R1=2	// QImode move
	[SP--]=R1	// QImode move
	call _Robot_DanceAgain	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,235,',0,0
	.dd LM126-_main
	.dw 0x0d,0x0a
.code
LM126:
	R1=BP	// QImode move
	R2=BP+2
	R1=0	// QImode move
	R3=R2	// QImode move
	[R3]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,236,',0,0
	.dd LM127-_main
	.dw 0x0d,0x0a
.code
LM127:
	pc=L40	// Indirect jump
L42:
.debug
	.dw '.stabn 0x44,0,240,',0,0
	.dd LM128-_main
	.dw 0x0d,0x0a
.code
LM128:
	R1=1	// QImode move
	[SP--]=R1	// QImode move
	call _Robot_TurnRight	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,241,',0,0
	.dd LM129-_main
	.dw 0x0d,0x0a
.code
LM129:
	R1=33	// QImode move
	[SP--]=R1	// QImode move
	call _PlaySnd	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,242,',0,0
	.dd LM130-_main
	.dw 0x0d,0x0a
.code
LM130:
	R1=(-2304)	// QImode move
	[SP--]=R1	// QImode move
	call _ImportFiveCommand	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,243,',0,0
	.dd LM131-_main
	.dw 0x0d,0x0a
.code
LM131:
	R1=BP	// QImode move
	R2=BP+4
	R1=0	// QImode move
	R4=R2	// QImode move
	[R4]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,244,',0,0
	.dd LM132-_main
	.dw 0x0d,0x0a
.code
LM132:
	R1=BP	// QImode move
	R2=BP+2
	R1=0	// QImode move
	R3=R2	// QImode move
	[R3]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,245,',0,0
	.dd LM133-_main
	.dw 0x0d,0x0a
.code
LM133:
	pc=L4	// Indirect jump
.debug
	.dw '.stabn 0x44,0,246,',0,0
	.dd LM134-_main
	.dw 0x0d,0x0a
.code
LM134:
	pc=L40	// Indirect jump
L43:
.debug
	.dw '.stabn 0x44,0,250,',0,0
	.dd LM135-_main
	.dw 0x0d,0x0a
.code
LM135:
	R1=4	// QImode move
	[SP--]=R1	// QImode move
	call _Robot_Shoot_Prepare	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,251,',0,0
	.dd LM136-_main
	.dw 0x0d,0x0a
.code
LM136:
	R1=1500	// QImode move
	[SP--]=R1	// QImode move
	call _Delay	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,252,',0,0
	.dd LM137-_main
	.dw 0x0d,0x0a
.code
LM137:
	R1=2	// QImode move
	[SP--]=R1	// QImode move
	call _Robot_Shoot_Five	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,253,',0,0
	.dd LM138-_main
	.dw 0x0d,0x0a
.code
LM138:
	R1=(-2304)	// QImode move
	[SP--]=R1	// QImode move
	call _ImportFiveCommand	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,254,',0,0
	.dd LM139-_main
	.dw 0x0d,0x0a
.code
LM139:
	R1=BP	// QImode move
	R2=BP+4
	R1=0	// QImode move
	R4=R2	// QImode move
	[R4]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,256,',0,0
	.dd LM140-_main
	.dw 0x0d,0x0a
.code
LM140:
	R1=BP	// QImode move
	R2=BP+2
	R1=0	// QImode move
	R3=R2	// QImode move
	[R3]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,257,',0,0
	.dd LM141-_main
	.dw 0x0d,0x0a
.code
LM141:
	pc=L4	// Indirect jump
.debug
	.dw '.stabn 0x44,0,258,',0,0
	.dd LM142-_main
	.dw 0x0d,0x0a
.code
LM142:
	pc=L40	// Indirect jump
L45:
L40:
.debug
	.dw '.stabn 0x44,0,260,',0,0
	.dd LM143-_main
	.dw 0x0d,0x0a
.code
LM143:
	R1=1	// QImode move
	[28690]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,261,',0,0
	.dd LM144-_main
	.dw 0x0d,0x0a
.code
LM144:
	R1=BP	// QImode move
	R2=BP+2
	R1=0	// QImode move
	R4=R2	// QImode move
	[R4]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,262,',0,0
	.dd LM145-_main
	.dw 0x0d,0x0a
.code
LM145:
	pc=L10	// Indirect jump
L47:
L10:
.debug
	.dw '.stabn 0x44,0,264,',0,0
	.dd LM146-_main
	.dw 0x0d,0x0a
.code
LM146:
	pc=L48	// Indirect jump
L9:
.debug
	.dw '.stabn 0x44,0,267,',0,0
	.dd LM147-_main
	.dw 0x0d,0x0a
.code
LM147:
	R1=BP	// QImode move
	R2=BP+1
	R3=R2	// QImode move
	R1=[R3]	// QImode move
	CMP R1,256	// QImode compare
	NSJNZ L48	//QImode NE
.debug
	.dw '.stabn 0x44,0,269,',0,0
	.dd LM148-_main
	.dw 0x0d,0x0a
.code
LM148:
	R1=1	// QImode move
	[28690]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,270,',0,0
	.dd LM149-_main
	.dw 0x0d,0x0a
.code
LM149:
	R1=BP	// QImode move
	R2=BP+2
	R1=1	// QImode move
	R4=R2	// QImode move
	[R4]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,271,',0,0
	.dd LM150-_main
	.dw 0x0d,0x0a
.code
LM150:
	R1=BP	// QImode move
	R2=BP+3
	R1=0	// QImode move
	R3=R2	// QImode move
	[R3]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,272,',0,0
	.dd LM151-_main
	.dw 0x0d,0x0a
.code
LM151:
	R1=30	// QImode move
	[SP--]=R1	// QImode move
	call _PlaySnd	// call without return value
	SP = SP + 1	//SP
L49:
L48:
.debug
	.dw '.stabn 0x44,0,275,',0,0
	.dd LM152-_main
	.dw 0x0d,0x0a
.code
LM152:
	pc=L50	// Indirect jump
L8:
.debug
	.dw '.stabn 0x44,0,276,',0,0
	.dd LM153-_main
	.dw 0x0d,0x0a
.code
LM153:
	R1=BP	// QImode move
	R2=BP+2
	R4=R2	// QImode move
	R1=[R4]	// QImode move
	CMP R1,0	// QImode test
	NSJZ L50	//QImode EQ
.debug
	.dw '.stabn 0x44,0,278,',0,0
	.dd LM154-_main
	.dw 0x0d,0x0a
.code
LM154:
	R1=BP	// QImode move
	R2=BP+3
	R3=BP	// QImode move
	R1=BP+3
	R2=BP	// QImode move
	R3=BP+3
	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,700	// QImode compare
	NSJNA L50	//QImode LEU
.debug
	.dw '.stabn 0x44,0,280,',0,0
	.dd LM155-_main
	.dw 0x0d,0x0a
.code
LM155:
	R1=1	// QImode move
	[28690]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,281,',0,0
	.dd LM156-_main
	.dw 0x0d,0x0a
.code
LM156:
	R1=BP	// QImode move
	R2=BP+2
	R1=0	// QImode move
	R3=R2	// QImode move
	[R3]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,282,',0,0
	.dd LM157-_main
	.dw 0x0d,0x0a
.code
LM157:
	R1=BP	// QImode move
	R2=BP+3
	R1=0	// QImode move
	R4=R2	// QImode move
	[R4]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,283,',0,0
	.dd LM158-_main
	.dw 0x0d,0x0a
.code
LM158:
	R1=24	// QImode move
	[SP--]=R1	// QImode move
	call _PlaySnd	// call without return value
	SP = SP + 1	//SP
L52:
L51:
L50:
.debug
	.dw '.stabn 0x44,0,286,',0,0
	.dd LM159-_main
	.dw 0x0d,0x0a
.code
LM159:
	R1=BP	// QImode move
	R2=BP+5
	R1=[28672]	// QImode move
	R3=R2	// QImode move
	[R3]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,287,',0,0
	.dd LM160-_main
	.dw 0x0d,0x0a
.code
LM160:
	R2=BP	// QImode move
	R1=BP+5
	R2=BP	// QImode move
	R3=BP+5
	R4=R3	// QImode move
	R4=[R4]	// QImode move
	R2=R4&4
	R4=R1	// QImode move
	[R4]=R2	// QImode move
.debug
	.dw '.stabn 0x44,0,288,',0,0
	.dd LM161-_main
	.dw 0x0d,0x0a
.code
LM161:
	R1=BP	// QImode move
	R2=BP+5
	R3=R2	// QImode move
	R1=[R3]	// QImode move
	CMP R1,4	// QImode compare
	NSJNZ L53	//QImode NE
.debug
	.dw '.stabn 0x44,0,290,',0,0
	.dd LM162-_main
	.dw 0x0d,0x0a
.code
LM162:
	R1=(-768)	// QImode move
	[SP--]=R1	// QImode move
	call _F_FlashErase	// call without return value
	SP = SP + 1	//SP
L53:
.debug
	.dw '.stabn 0x44,0,292,',0,0
	.dd LM163-_main
	.dw 0x0d,0x0a
.code
LM163:
	pc=L5	// Indirect jump
L6:
.debug
	.dw '.stabn 0x44,0,293,',0,0
	.dd LM164-_main
	.dw 0x0d,0x0a
.code
LM164:
LBE2:
.debug
	.dw '.stabn 0x44,0,293,',0,0
	.dd LM165-_main
	.dw 0x0d,0x0a
.code
LM165:
L2:

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

.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB2-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabs "uiFlagFirst:4",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "uiRes:4",128,0,0,1',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "uiActivated:4",128,0,0,2',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "uiTimerCount:4",128,0,0,3',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "uiBS_Team:4",128,0,0,4',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "uiKey:4",128,0,0,5',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE2-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabf ',0,0
	.dd LME1-_main
	.dw 0x0d,0x0a
.code
LME1:
.external _F_FlashErase
.external _Robot_Shoot_Five
.external _Robot_TurnRight
.external _Robot_DanceAgain
.external _Robot_Shoot2
.external _Delay
.external _Robot_Shoot_Prepare
.external _Robot_TurnLeft
.external _Robot_Dance
.external _Robot_HeadTurnRight
.external _Robot_Backup
.external _Robot_HeadTurnLeft
.external _Robot_Go
.external _BSR_GetResult
.external _BSR_InitRecognizer
.external _ImportFiveCommand
.external _F_FlashWrite1Word
.external _PlaySnd
.external _SaveFiveCommand
.external _TrainFiveCommand
.external _FormatFlash
.external _IsFirstDownLoad
.external _RobotSystemInit
	.end

⌨️ 快捷键说明

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