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

📄 main.asm

📁 波形发生器
💻 ASM
📖 第 1 页 / 共 5 页
字号:
	.dd LM159-_main
	.dw 0x0d,0x0a
.code
LM159:
	R1=3184	// QImode move
	[_Mk_Z6]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,253,',0,0
	.dd LM160-_main
	.dw 0x0d,0x0a
.code
LM160:
	R1=BP	// QImode move
	R2=BP+18
	R1=6	// QImode move
	R4=R2	// QImode move
	[R4]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,254,',0,0
	.dd LM161-_main
	.dw 0x0d,0x0a
.code
LM161:
	R1=0	// HFmode immediate to register move
	R2=16384
	[_j]=R1	// HFmode [Label]=RS
	[_j+1]=R2
.debug
	.dw '.stabn 0x44,0,255,',0,0
	.dd LM162-_main
	.dw 0x0d,0x0a
.code
LM162:
	R1=0	// HFmode immediate to register move
	R2=16128
	[_h]=R1	// HFmode [Label]=RS
	[_h+1]=R2
.debug
	.dw '.stabn 0x44,0,256,',0,0
	.dd LM163-_main
	.dw 0x0d,0x0a
.code
LM163:
	R1=0	// HFmode immediate to register move
	R2=0
	[_tt]=R1	// HFmode [Label]=RS
	[_tt+1]=R2
L76:
.debug
	.dw '.stabn 0x44,0,258,',0,0
	.dd LM164-_main
	.dw 0x0d,0x0a
.code
LM164:
	R1=[_tt]	// HFmode RD=[Label]
	R2=[_tt+1]
	R3=4058	// HFmode immediate to register move
	R4=16457
	push R3,R4 to [sp]	// pushhf
	push R1,R2 to [sp]	// pushhf
	call __mulf2	// call with return value
	SP=SP+4
	R3=[_j]	// HFmode RD=[Label]
	R4=[_j+1]
	push R3,R4 to [sp]	// pushhf
	push R1,R2 to [sp]	// pushhf
	call __divf2	// call with return value
	SP=SP+4
	[_t]=R1	// HFmode [Label]=RS
	[_t+1]=R2
.debug
	.dw '.stabn 0x44,0,259,',0,0
	.dd LM165-_main
	.dw 0x0d,0x0a
.code
LM165:
	R1=[_t]	// HFmode RD=[Label]
	R2=[_t+1]
	push R1,R2 to [sp]	// pushhf
	call _sinf	// call with return value
	SP=SP+2
	R3=[_h]	// HFmode RD=[Label]
	R4=[_h+1]
	push R1,R2 to [sp]	// pushhf
	push R3,R4 to [sp]	// pushhf
	call __mulf2	// call with return value
	SP=SP+4
	[_y]=R1	// HFmode [Label]=RS
	[_y+1]=R2
.debug
	.dw '.stabn 0x44,0,260,',0,0
	.dd LM166-_main
	.dw 0x0d,0x0a
.code
LM166:
	R1=BP	// QImode move
	R1=BP+28
	[bp+56]=R1	// QImode move
	R1=[_y]	// HFmode RD=[Label]
	R2=[_y+1]
	R3=49152	// HFmode immediate to register move
	R4=18175
	push R3,R4 to [sp]	// pushhf
	push R1,R2 to [sp]	// pushhf
	call __mulf2	// call with return value
	SP=SP+4
	push R1,R2 to [sp]	// pushhf
	call __cvf2i1	// call with return value
	SP=SP+2
	R2=[bp+56]	// QImode move
	[R2]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,261,',0,0
	.dd LM167-_main
	.dw 0x0d,0x0a
.code
LM167:
	R2=BP	// QImode move
	R1=BP+28
	R2=BP	// QImode move
	R3=BP+28
	R4=R3	// QImode move
	R2=[R4]	// QImode move
	R3=R2^(-32768)
	R2=R1	// QImode move
	[R2]=R3	// QImode move
.debug
	.dw '.stabn 0x44,0,262,',0,0
	.dd LM168-_main
	.dw 0x0d,0x0a
.code
LM168:
	R1=BP	// QImode move
	R2=BP+28
	R3=R2	// QImode move
	R1=[R3]	// QImode move
	[SP--]=R1	// QImode move
	call _DAC_FW	// call with return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,263,',0,0
	.dd LM169-_main
	.dw 0x0d,0x0a
.code
LM169:
	R1=[_j]	// HFmode RD=[Label]
	R2=[_j+1]
	R3=0	// HFmode immediate to register move
	R4=17096
	push R3,R4 to [sp]	// pushhf
	push R1,R2 to [sp]	// pushhf
	call __divf2	// call with return value
	SP=SP+4
	R3=[_tt]	// HFmode RD=[Label]
	R4=[_tt+1]
	push R1,R2 to [sp]	// pushhf
	push R3,R4 to [sp]	// pushhf
	call __addf2	// call with return value
	SP=SP+4
	[_tt]=R1	// HFmode [Label]=RS
	[_tt+1]=R2
.debug
	.dw '.stabn 0x44,0,264,',0,0
	.dd LM170-_main
	.dw 0x0d,0x0a
.code
LM170:
	R1=[_tt]	// HFmode RD=[Label]
	R2=[_tt+1]
	push R1,R2 to [sp]	// pushhf
	call __cvf2i1	// call with return value
	SP=SP+2
	[SP--]=R1	// QImode move
	call __cvi1f2	// call with return value
	SP=SP+1
	[bp+57]=R1	// HFmode [BP+#IM6]=RS
	[bp+58]=R2
	R1=[_j]	// HFmode RD=[Label]
	R2=[_j+1]
	[bp+59]=R1	// HFmode [BP+#IM6]=RS
	[bp+60]=R2
	R3=[bp+59]	// HFmode RD=[BP+#IM6]
	R4=[bp+60]
	push R3,R4 to [sp]	// pushhf
	R1=[bp+59]	// HFmode RD=[BP+#IM6]
	R2=[bp+60]
	push R1,R2 to [sp]	// pushhf
	call __addf2	// call with return value
	SP=SP+4
	push R1,R2 to [sp]	// pushhf
	R3=[bp+57]	// HFmode RD=[BP+#IM6]
	R4=[bp+58]
	push R3,R4 to [sp]	// pushhf
	call __cmpf2	// call with return value
	SP=SP+4
	CMP R1,1	// QImode compare
	JZ L159	// QImode NE
	PC=L77
L159:
	R1=0	// HFmode immediate to register move
	R2=0
	[_tt]=R1	// HFmode [Label]=RS
	[_tt+1]=R2
L77:
.debug
	.dw '.stabn 0x44,0,265,',0,0
	.dd LM171-_main
	.dw 0x0d,0x0a
.code
LM171:
	pc=L76	// jump
.debug
	.dw '.stabn 0x44,0,266,',0,0
	.dd LM172-_main
	.dw 0x0d,0x0a
.code
LM172:
	pc=L53	// jump
L78:
.debug
	.dw '.stabn 0x44,0,269,',0,0
	.dd LM173-_main
	.dw 0x0d,0x0a
.code
LM173:
	R1=BP	// QImode move
	R2=BP+9
	R1=7	// QImode move
	R4=R2	// QImode move
	[R4]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,270,',0,0
	.dd LM174-_main
	.dw 0x0d,0x0a
.code
LM174:
	R1=BP	// QImode move
	R2=BP+18
	R1=7	// QImode move
	R3=R2	// QImode move
	[R3]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,271,',0,0
	.dd LM175-_main
	.dw 0x0d,0x0a
.code
LM175:
	R1=BP	// QImode move
	R2=BP+8
	R1=6	// QImode move
	R4=R2	// QImode move
	[R4]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,272,',0,0
	.dd LM176-_main
	.dw 0x0d,0x0a
.code
LM176:
	R1=BP	// QImode move
	R2=BP+24
	R1=7	// QImode move
	R3=R2	// QImode move
	[R3]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,274,',0,0
	.dd LM177-_main
	.dw 0x0d,0x0a
.code
LM177:
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	R1=BP	// QImode move
	R2=BP+24
	R4=R2	// QImode move
	R1=[R4]	// QImode move
	[SP--]=R1	// QImode move
	call _showled	// call without return value
	SP=SP+2
.debug
	.dw '.stabn 0x44,0,275,',0,0
	.dd LM178-_main
	.dw 0x0d,0x0a
.code
LM178:
	R1=[_Mk_Z]	// QImode move
	CMP R1,1499	// QImode compare
	JNA L160	// QImode GTU
	PC=L79
L160:
	R1=[_Mk_Z]	// QImode move
	R2=100	// QImode move
	[_Mk_Z]=R1+R2
	pc=L80	// jump
L79:
.debug
	.dw '.stabn 0x44,0,276,',0,0
	.dd LM179-_main
	.dw 0x0d,0x0a
.code
LM179:
	R1=0	// QImode move
	[_Mk_Z]=R1	// QImode move
L80:
.debug
	.dw '.stabn 0x44,0,277,',0,0
	.dd LM180-_main
	.dw 0x0d,0x0a
.code
LM180:
	R1=3248	// QImode move
	[_Mk_Z6]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,278,',0,0
	.dd LM181-_main
	.dw 0x0d,0x0a
.code
LM181:
	pc=L53	// jump
L81:
.debug
	.dw '.stabn 0x44,0,281,',0,0
	.dd LM182-_main
	.dw 0x0d,0x0a
.code
LM182:
	R1=BP	// QImode move
	R2=BP+10
	R1=8	// QImode move
	R3=R2	// QImode move
	[R3]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,282,',0,0
	.dd LM183-_main
	.dw 0x0d,0x0a
.code
LM183:
	R1=BP	// QImode move
	R2=BP+18
	R1=8	// QImode move
	R4=R2	// QImode move
	[R4]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,283,',0,0
	.dd LM184-_main
	.dw 0x0d,0x0a
.code
LM184:
	R1=BP	// QImode move
	R2=BP+24
	R1=8	// QImode move
	R3=R2	// QImode move
	[R3]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,285,',0,0
	.dd LM185-_main
	.dw 0x0d,0x0a
.code
LM185:
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	R1=BP	// QImode move
	R2=BP+24
	R4=R2	// QImode move
	R1=[R4]	// QImode move
	[SP--]=R1	// QImode move
	call _showled	// call without return value
	SP=SP+2
.debug
	.dw '.stabn 0x44,0,286,',0,0
	.dd LM186-_main
	.dw 0x0d,0x0a
.code
LM186:
	R1=3312	// QImode move
	[_Mk_Z6]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,287,',0,0
	.dd LM187-_main
	.dw 0x0d,0x0a
.code
LM187:
	R1=[_Mk_F5]	// QImode move
	CMP R1,1499	// QImode compare
	JNA L161	// QImode GTU
	PC=L82
L161:
	R1=[_Mk_F5]	// QImode move
	R2=100	// QImode move
	[_Mk_F5]=R1+R2
	pc=L83	// jump
L82:
.debug
	.dw '.stabn 0x44,0,288,',0,0
	.dd LM188-_main
	.dw 0x0d,0x0a
.code
LM188:
	R1=0	// QImode move
	[_Mk_F5]=R1	// QImode move
L83:
.debug
	.dw '.stabn 0x44,0,291,',0,0
	.dd LM189-_main
	.dw 0x0d,0x0a
.code
LM189:
	pc=L53	// jump
L84:
.debug
	.dw '.stabn 0x44,0,294,',0,0
	.dd LM190-_main
	.dw 0x0d,0x0a
.code
LM190:
	R1=BP	// QImode move
	R2=BP+11
	R1=9	// QImode move
	R3=R2	// QImode move
	[R3]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,295,',0,0
	.dd LM191-_main
	.dw 0x0d,0x0a
.code
LM191:
	R1=BP	// QImode move
	R2=BP+18
	R1=9	// QImode move
	R4=R2	// QImode move
	[R4]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,296,',0,0
	.dd LM192-_main
	.dw 0x0d,0x0a
.code
LM192:
	R1=BP	// QImode move
	R2=BP+24
	R1=9	// QImode move
	R3=R2	// QImode move
	[R3]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,298,',0,0
	.dd LM193-_main
	.dw 0x0d,0x0a
.code
LM193:
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	R1=BP	// QImode move
	R2=BP+24
	R4=R2	// QImode move
	R1=[R4]	// QImode move
	[SP--]=R1	// QImode move
	call _showled	// call without return value
	SP=SP+2
.debug
	.dw '.stabn 0x44,0,299,',0,0
	.dd LM194-_main
	.dw 0x0d,0x0a
.code
LM194:
	R1=3568	// QImode move
	[_Mk_Z6]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,300,',0,0
	.dd LM195-_main
	.dw 0x0d,0x0a
.code
LM195:
	R1=[_Mk_F4]	// QImode move
	CMP R1,1499	// QImode compare
	JNA L162	// QImode GTU
	PC=L85
L162:
	R1=[_Mk_F4]	// QImode move
	R2=100	// QImode move
	[_Mk_F]=R1+R2
	pc=L86	// jump
L85:
.debug
	.dw '.stabn 0x44,0,301,',0,0
	.dd LM196-_main
	.dw 0x0d,0x0a
.code
LM196:
	R1=0	// QImode move
	[_Mk_F4]=R1	// QImode move
L86:
.debug
	.dw '.stabn 0x44,0,302,',0,0
	.dd LM197-_main
	.dw 0x0d,0x0a
.code
LM197:
	R1=BP	// QImode move
	R2=BP+26
	R3=R2	// QImode move
	R1=[R3]	// QImode move
	CMP R1,(-2)	// QImode compare
	JNA L163	// QImode GTU
	PC=L87
L163:
	R2=BP	// QImode move
	R1=BP+26
	R2=BP	// QImode move
	R3=BP+26
	R4=R3	// QImode move
	R2=[R4]	// QImode move
	R3=R2+4096
	R2=R1	// QImode move
	[R2]=R3	// QImode move
	pc=L88	// jump
L87:
.debug
	.dw '.stabn 0x44,0,303,',0,0
	.dd LM198-_main
	.dw 0x0d,0x0a
.code
LM198:
	R1=BP	// QImode move
	R2=BP+26
	R1=0	// QImode move
	R3=R2	// QImode move
	[R3]=R1	// QImode move
L88:
.debug
	.dw '.stabn 0x44,0,304,',0,0
	.dd LM199-_main
	.dw 0x0d,0x0a
.code
LM199:
	R1=BP	// QImode move
	R2=BP+19
	R4=R2	// QImode move
	R1=[R4]	// QImode move
	CMP R1,0	// QImode test
	JZ L164	// QImode NE
	PC=L89
L164:
	R1=BP	// QImode move
	R2=BP+19
	R1=1	// QImode move
	R3=R2	// QImode move
	[R3]=R1	// QImode move
	pc=L90	// jump
L89:
.debug
	.dw '.stabn 0x44,0,305,',0,0
	.dd LM200-_main
	.dw 0x0d,0x0a
.code
LM200:
	R1=BP	// QImode move
	R2=BP+19
	R1=0	// QImode move
	R4=R2	// QImode move
	[R4]=R1	// QImode move
L90:
.debug
	.dw '.stabn 0x44,0,306,',0,0
	.dd LM201-_main
	.dw 0x0d,0x0a
.code
LM201:
	pc=L53	// jump
L91:
.debug
	.dw '.stabn 0x44,0,309,',0,0
	.dd LM202-_main
	.dw 0x0d,0x0a
.code
LM202:
	R1=BP	// QImode move
	R2=BP+12
	R1=10	// QImode move
	R3=R2	// QImode move
	[R3]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,310,',0,0
	.dd LM203-_main
	.dw 0x0d,0x0a
.code
LM203:
	R1=BP	// QImode move
	R2=BP+18
	R1=10	// QImode move
	R4=R2	// QImode move
	[R4]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,311,',0,0
	.dd LM204-_main
	.dw 0x0d,0x0a
.code
LM204:
	R1=BP	// QImode move
	R2=BP+24
	R1=10	// QImode move
	R3=R2	// QImode move
	[R3]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,313,',0,0
	.dd LM205-_main
	.dw 0x0d,0x0a
.code
LM205:
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	R1=BP	// QImode move
	R2=BP+24
	R4=R2	// QImode move
	R1=[R4]	// QImode move
	[SP--]=R1	// QImode move
	call _showled	// call without return value
	SP=SP+2
.debug
	.dw '.stabn 0x44,0,314,',0,0
	.dd LM206-_main
	.dw 0x0d,0x0a
.code
LM206:
	R1=3440	// QImode move
	[_Mk_Z6]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,315,',0,0
	.dd LM207-_main
	.dw 0x0d,0x0a
.code
LM207:
	R1=[_Mk_F3]	// QImode move
	CMP R1,1499	// QImode compare
	JNA L165	// QImode GTU
	PC=L92
L165:
	R1=[_Mk_F3]	// QImode move
	R2=100	// QImode move
	[_Mk_F3]=R1+R2
	pc=L93	// jump
L92:
.debug
	.dw '.stabn 0x44,0,316,',0,0
	.dd LM208-_main
	.dw 0x0d,0x0a
.code
LM208:
	R1=0	// QImode move
	[_Mk_F3]=R1	// QImode move
L93:
.debug
	.dw '.stabn 0x44,0,317,',0,0
	.dd LM209-_main
	.dw 0x0d,0x0a
.code
LM209:
	R1=[_Bianxing1]	// QImode move
	CMP R1,99	// QImode compare
	JNA L166	// QImode GTU
	PC=L94
L166:
	R1=[_Bianxing1]	// QImode move
	R2=5	// QImode move
	[_Bianxing1]=R1+R2
	pc=L95	// jump
L94:
.debug
	.dw '.stabn 0x44,0,318,',0,0
	.dd LM210-_main
	.dw 0x0d,0x0a
.code
LM210:
	R1=0	// QImode move
	[_Bianxing1]=R1	// QImode move
L95:
.debug
	.dw '.stabn 0x44,0,319,',0,0
	.dd LM211-_main
	.dw 0x0d,0x0a
.code
LM211:
	R1=BP	// QImode move
	R2=BP+20
	R3=R2	// QImode move
	R1=[R3]	// QImode move
	CMP R1,0	// QImode test
	JZ L167	// QImode NE
	PC=L96
L167:

⌨️ 快捷键说明

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