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

📄 main.asm

📁 C语言学习的一个不错的资料
💻 ASM
📖 第 1 页 / 共 4 页
字号:
	.dw 0x0d,0x0a
.code
LM168:
LBB10:
	call _Fill_A_Word_To_Queue	// call without return value
.debug
	.dw '.stabn 0x44,0,331,',0,0
	.dd LM169-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM169:
	call _SACM_DVR_Decode	// call with return value
.debug
	.dw '.stabn 0x44,0,332,',0,0
	.dd LM170-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM170:
LBE10:
	pc=L104	// jump
L103:
.debug
	.dw '.stabn 0x44,0,335,',0,0
	.dd LM171-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM171:
	call _DVR_Stop	// call without return value
.debug
	.dw '.stabn 0x44,0,336,',0,0
	.dd LM172-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM172:
	R1=[_Segment]
	R2=0
	R3=[_Buffer]	// HImode RD=[Label]
	R4=[_Buffer+1]
	CMP R2,R4	// HImode compare
	JB  L131	// HImode GEU
	JNZ L130
	CMP R1,R3
	JB  L131
L130:
	PC=L105
L131:
.debug
	.dw '.stabn 0x44,0,338,',0,0
	.dd LM173-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM173:
	R1=[_Segment]	// QImode move
	R2=1	// QImode move
	[_Segment]=R1+R2
.debug
	.dw '.stabn 0x44,0,339,',0,0
	.dd LM174-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM174:
	R1=[_Segment]	// QImode move
	R2=R1	// QImode move
	R1=R2 lsl 1
	R2=R1+(-1)
	R3=R2	// QImode move
	R1=R3 lsl 1
	R3=_Buffer	// QImode move
	R2=R3	// QImode move
	R2+=R1	// addqi3_r0r
	R1=R2	// QImode move
	R3=[R1++]	// RD=[RS] HImode, RD!=RS
	R4=[R1--]
	[_Addr]=R3	// HImode [Label]=RS
	[_Addr+1]=R4
.debug
	.dw '.stabn 0x44,0,340,',0,0
	.dd LM175-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM175:
	pc=L106	// jump
L105:
.debug
	.dw '.stabn 0x44,0,343,',0,0
	.dd LM176-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM176:
	R1=1	// QImode move
	[_Segment]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,344,',0,0
	.dd LM177-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM177:
	R1=[_Buffer+2]	// HImode RD=[Label]
	R2=[_Buffer+3]
	[_Addr]=R1	// HImode [Label]=RS
	[_Addr+1]=R2
L106:
.debug
	.dw '.stabn 0x44,0,346,',0,0
	.dd LM178-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM178:
	call _Play_Initial	// call without return value
L104:
.debug
	.dw '.stabn 0x44,0,348,',0,0
	.dd LM179-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM179:
	pc=L94	// jump
L107:
.debug
	.dw '.stabn 0x44,0,350,',0,0
	.dd LM180-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM180:
	call _SACM_DVR_Status	// call with return value
	R2=R1&1
	CMP R2,0	// QImode test
	JNZ L132	// QImode EQ
	PC=L108
L132:
.debug
	.dw '.stabn 0x44,0,352,',0,0
	.dd LM181-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM181:
LBB11:
	call _Fill_A_Word_To_Queue	// call without return value
.debug
	.dw '.stabn 0x44,0,353,',0,0
	.dd LM182-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM182:
	call _SACM_DVR_Decode	// call with return value
.debug
	.dw '.stabn 0x44,0,354,',0,0
	.dd LM183-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM183:
LBE11:
	pc=L109	// jump
L108:
.debug
	.dw '.stabn 0x44,0,357,',0,0
	.dd LM184-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM184:
	call _DVR_Stop	// call without return value
.debug
	.dw '.stabn 0x44,0,358,',0,0
	.dd LM185-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM185:
	R1=[_Segment]	// QImode move
	R2=R1	// QImode move
	R1=R2 lsl 1
	R2=R1+(-1)
	R3=R2	// QImode move
	R1=R3 lsl 1
	R3=_Buffer	// QImode move
	R2=R3	// QImode move
	R2+=R1	// addqi3_r0r
	R1=R2	// QImode move
	R3=[R1++]	// RD=[RS] HImode, RD!=RS
	R4=[R1--]
	[_Addr]=R3	// HImode [Label]=RS
	[_Addr+1]=R4
.debug
	.dw '.stabn 0x44,0,359,',0,0
	.dd LM186-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM186:
	call _Play_Initial	// call without return value
L109:
.debug
	.dw '.stabn 0x44,0,361,',0,0
	.dd LM187-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM187:
	pc=L94	// jump
L110:
.debug
	.dw '.stabn 0x44,0,363,',0,0
	.dd LM188-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM188:
	R3=[_Buffer]	// HImode RD=[Label]
	R4=[_Buffer+1]
	R1=R3	// HImode register to register move
	R2=R4
	R3=1	// QImode move
	[SP--]=R3	// QImode move
	push R1,R2 to [sp]	// pushhi
	call __lshiu2	// call with return value
	SP=SP+3
	R3=R1+1
	R2=R3	// QImode move
	R1=R2 lsl 1
	R3=_Buffer	// QImode move
	R2=R3	// QImode move
	R2+=R1	// addqi3_r0r
	R1=R2	// QImode move
	R3=[R1++]	// RD=[RS] HImode, RD!=RS
	R4=[R1--]
	[_Addr]=R3	// HImode [Label]=RS
	[_Addr+1]=R4
.debug
	.dw '.stabn 0x44,0,364,',0,0
	.dd LM189-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM189:
	call _UART_Download	// call with return value
.debug
	.dw '.stabn 0x44,0,365,',0,0
	.dd LM190-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM190:
	call _Modify_Index	// call without return value
.debug
	.dw '.stabn 0x44,0,366,',0,0
	.dd LM191-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM191:
	R1=1	// QImode move
	[_BaseType]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,367,',0,0
	.dd LM192-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM192:
	R1=0	// QImode move
	[_SubStatus]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,368,',0,0
	.dd LM193-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM193:
	call _Open_Interrupt	// call with return value
.debug
	.dw '.stabn 0x44,0,369,',0,0
	.dd LM194-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM194:
	pc=L94	// jump
L111:
.debug
	.dw '.stabn 0x44,0,371,',0,0
	.dd LM195-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM195:
	R1=[_Segment]	// QImode move
	R2=R1	// QImode move
	R1=R2 lsl 1
	R2=R1+(-1)
	R3=R2	// QImode move
	R1=R3 lsl 1
	R3=_Buffer	// QImode move
	R2=R3	// QImode move
	R2+=R1	// addqi3_r0r
	R1=R2	// QImode move
	R3=[R1++]	// RD=[RS] HImode, RD!=RS
	R4=[R1--]
	[_Addr0]=R3	// HImode [Label]=RS
	[_Addr0+1]=R4
.debug
	.dw '.stabn 0x44,0,372,',0,0
	.dd LM196-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM196:
	R1=[_Segment]	// QImode move
	R2=R1	// QImode move
	R1=R2 lsl 2
	R3=_Buffer	// QImode move
	R2=R3	// QImode move
	R2+=R1	// addqi3_r0r
	R1=R2	// QImode move
	R3=[R1++]	// RD=[RS] HImode, RD!=RS
	R4=[R1--]
	[_Addr1]=R3	// HImode [Label]=RS
	[_Addr1+1]=R4
.debug
	.dw '.stabn 0x44,0,373,',0,0
	.dd LM197-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM197:
	R1=[_Addr0]	// HImode RD=[Label]
	R2=[_Addr0+1]
	[_Addr]=R1	// HImode [Label]=RS
	[_Addr+1]=R2
L112:
	R1=[_Addr]	// HImode RD=[Label]
	R2=[_Addr+1]
	R3=[_Addr1]	// HImode RD=[Label]
	R4=[_Addr1+1]
	CMP R2,R4	// HImode compare
	JA  L134	// HImode LEU
	JNZ L133
	CMP R1,R3
	JA  L134
L133:
	PC=L115
L134:
	pc=L113	// jump
L115:
.debug
	.dw '.stabn 0x44,0,375,',0,0
	.dd LM198-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM198:
LBB12:
	R1=[_Addr]	// HImode RD=[Label]
	R2=[_Addr+1]
	push R1,R2 to [sp]	// pushhi
	call _SP_SIOReadAByte	// call with return value
	SP=SP+2
	[_Ret]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,376,',0,0
	.dd LM199-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM199:
	R1=[_Ret]	// QImode move
	[SP--]=R1	// QImode move
	call _SP_UartSentByte	// call with return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,377,',0,0
	.dd LM200-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM200:
LBE12:
.debug
	.dw '.stabn 0x44,0,373,',0,0
	.dd LM201-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM201:
L114:
	R1=[_Addr]	// HImode RD=[Label]
	R2=[_Addr+1]
	R3=R1+1	// HImode RD=RS+#IMM16
	R4=R2+0, Carry
	[_Addr]=R3	// HImode [Label]=RS
	[_Addr+1]=R4
	pc=L112	// jump
L113:
.debug
	.dw '.stabn 0x44,0,378,',0,0
	.dd LM202-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM202:
	R1=1	// QImode move
	[_BaseType]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,379,',0,0
	.dd LM203-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM203:
	R1=0	// QImode move
	[_SubStatus]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,380,',0,0
	.dd LM204-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM204:
	call _Open_Interrupt	// call with return value
.debug
	.dw '.stabn 0x44,0,381,',0,0
	.dd LM205-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM205:
	pc=L94	// jump
L116:
L117:
.debug
	.dw '.stabn 0x44,0,384,',0,0
	.dd LM206-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM206:
	R1=50	// QImode move
	[_i]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,385,',0,0
	.dd LM207-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM207:
L118:
	R2=[_i]	// QImode move
	R1=R2+(-1)
	R2=R1	// QImode move
	[_i]=R2	// QImode move
	CMP R2,(-1)	// QImode compare
	JZ L135	// QImode NE
	PC=L120
L135:
	pc=L119	// jump
L120:
.debug
	.dw '.stabn 0x44,0,387,',0,0
	.dd LM208-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM208:
LBB13:
	R1=[_BaseType]	// QImode move
	CMP R1,0	// QImode test
	JNZ L136	// QImode EQ
	PC=L121
L136:
.debug
	.dw '.stabn 0x44,0,388,',0,0
	.dd LM209-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM209:
	R1=16128	// QImode move
	[SP--]=R1	// QImode move
	R1=28672	// QImode move
	[SP--]=R1	// QImode move
	call _SP_Export	// call with return value
	SP=SP+2
	pc=L122	// jump
L121:
.debug
	.dw '.stabn 0x44,0,390,',0,0
	.dd LM210-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM210:
	R1=(-1024)	// QImode move
	[SP--]=R1	// QImode move
	R1=28672	// QImode move
	[SP--]=R1	// QImode move
	call _SP_Export	// call with return value
	SP=SP+2
L122:
.debug
	.dw '.stabn 0x44,0,391,',0,0
	.dd LM211-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM211:
LBE13:
	pc=L118	// jump
L119:
.debug
	.dw '.stabn 0x44,0,392,',0,0
	.dd LM212-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM212:
	pc=L94	// jump
L94:
.debug
	.dw '.stabn 0x44,0,394,',0,0
	.dd LM213-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM213:
LBE7:
.debug
	.dw '.stabn 0x44,0,394,',0,0
	.dd LM214-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LM214:
L93:

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

.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB7-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB8-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE8-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB9-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE9-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB10-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE10-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB11-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE11-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB12-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE12-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB13-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE13-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE7-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabf ',0,0
	.dd LME8-_According_to_SubStatus
	.dw 0x0d,0x0a
.code
LME8:
.debug
	.dw '.stabs "Keycode:G4",32,0,0,',0,0,offset _Keycode,seg _Keycode,0x0d,0x0a
.CODE
.ram
.public _Keycode
_Keycode:
	.dw 0
.debug
	.dw '.stabs "Ret:G4",32,0,0,',0,0,offset _Ret,seg _Ret,0x0d,0x0a
.CODE
.ram
.public _Ret
_Ret:
	.dw 0
.debug
	.dw '.stabs "i:G4",32,0,0,',0,0,offset _i,seg _i,0x0d,0x0a
.CODE
.ram
.public _i
_i:
	.dw 0
.debug
	.dw '.stabs "Segment:G4",32,0,0,',0,0,offset _Segment,seg _Segment,0x0d,0x0a
.CODE
.ram
.public _Segment
_Segment:
	.dw 0
.debug
	.dw '.stabs "internal_addr:G4",32,0,0,',0,0,offset _internal_addr,seg _internal_addr,0x0d,0x0a
.CODE
.ram
.public _internal_addr
_internal_addr:
	.dw 0
.debug
	.dw '.stabs "BaseType:G4",32,0,0,',0,0,offset _BaseType,seg _BaseType,0x0d,0x0a
.CODE
.ram
.public _BaseType
_BaseType:
	.dw 0
.debug
	.dw '.stabs "SubStatus:G4",32,0,0,',0,0,offset _SubStatus,seg _SubStatus,0x0d,0x0a
.CODE
.ram
.public _SubStatus
_SubStatus:
	.dw 0
.debug
	.dw '.stabs "Addr:G5",32,0,0,',0,0,offset _Addr,seg _Addr,0x0d,0x0a
.CODE
.ram
.public _Addr
_Addr:
	.dw 2 dup(0)
.debug
	.dw '.stabs "Addr0:G5",32,0,0,',0,0,offset _Addr0,seg _Addr0,0x0d,0x0a
.CODE
.ram
.public _Addr0
_Addr0:
	.dw 2 dup(0)
.debug
	.dw '.stabs "Addr1:G5",32,0,0,',0,0,offset _Addr1,seg _Addr1,0x0d,0x0a
.CODE
.ram
.public _Addr1
_Addr1:
	.dw 2 dup(0)
.debug
	.dw '.stabs "Tem:G5",32,0,0,',0,0,offset _Tem,seg _Tem,0x0d,0x0a
.CODE
.ram
.public _Tem
_Tem:
	.dw 2 dup(0)
.debug
	.dw '.stabs "Buffer:G22=ar1;0;20;5",32,0,0,',0,0,offset _Buffer,seg _Buffer,0x0d,0x0a
.CODE
.ram
.public _Buffer
_Buffer:
	.dw 42 dup(0)
.external _SP_Export
.external _SP_UartSentByte
.external _SP_SIOReadAByte
.external _UART_Download
.external _SACM_DVR_Decode
.external _SACM_DVR_Status
.external _SACM_DVR_Encode
.external _Open_Interrupt
.external _SP_SIOMassErase
.external _SP_UART_Init
.external _Close_Interrupt
.external _SACM_DVR_InitEncoder
.external _SACM_DVR_InitDecoder
.external _SACM_DVR_FillQueue
.external _SP_SIOReadAWord
.external _SACM_DVR_InitQueue
.external _SP_SIOSendAWord
.external _SACM_DVR_FetchQueue
.external _SACM_DVR_TestQueue
.external _SP_RampUpDAC2
.external _SP_RampUpDAC1
.external _SACM_DVR_Stop
.external _SP_WriteWord
.external _SP_PageErase
.external _F_Key_Scan
.external _SACM_DVR_Initial
.external _System_Initial
.external _SP_ReadWord
.external __lshiu2
	.end

⌨️ 快捷键说明

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