📄 main.asm
字号:
// GCC for SUNPLUS u'nSP version 1.0.21-3
// Command: D:\PROGRA~1\Sunplus\UNSPID~1.0\cc1.exe D:\DOCUME~1\RENJIA~1\LOCALS~1\Temp\cc4Uaaaa.i -fkeep-inline-functions -quiet -dumpbase main.c -mglobal-var-iram -gstabs -Wall -o .\Debug/main.asm
.external __sn_func_ptr_sec
// gcc2_compiled.:
.debug
.dw '.stabs "F:/ledvoice/",0x64,0,3,',0,0,offset Ltext0,seg Ltext0,0x0d,0x0a
.code
.debug
.dw '.stabs "F:/ledvoice/main.c",0x64,0,3,',0,0,offset Ltext0,seg Ltext0,0x0d,0x0a
.code
.code
Ltext0:
.debug
.dw '.stabs "int:t1=r1;-32768;32767;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "char:t2=r2;0;127;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "long int:t3=r3;-2147483648;2147483647;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "unsigned int:t4=r4;0;65535;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "long unsigned int:t5=r5;0;4294967295;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "long long int:t6=r6;-2147483648;2147483647;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "long long unsigned int:t7=r7;0;4294967295;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "short int:t8=r8;-32768;32767;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "short unsigned int:t9=r9;0;65535;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "signed char:t10=r10;-32768;32767;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "unsigned char:t11=r11;0;65535;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "float:t12=r1;2;0;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "double:t13=r1;2;0;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "long double:t14=r1;2;0;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "complex int:t15=s2real:1,0,16;imag:1,16,16;;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "complex float:t16=r16;2;0;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "complex double:t17=r17;2;0;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "complex long double:t18=r18;2;0;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "void:t19=19",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "ext2flag:G4",32,0,0,',0,0,offset _ext2flag,seg _ext2flag,0x0d,0x0a
.CODE
.debug
.dw '.stabs "recvdata1:G4",32,0,0,',0,0,offset _recvdata1,seg _recvdata1,0x0d,0x0a
.CODE
.debug
.dw '.stabs "recvdata2:G4",32,0,0,',0,0,offset _recvdata2,seg _recvdata2,0x0d,0x0a
.CODE
.debug
.dw '.stabs "sendflag:G4",32,0,0,',0,0,offset _sendflag,seg _sendflag,0x0d,0x0a
.CODE
.debug
.dw '.stabs "playflag:G4",32,0,0,',0,0,offset _playflag,seg _playflag,0x0d,0x0a
.CODE
.debug
.dw '.stabs "playstate:G4",32,0,0,',0,0,offset _playstate,seg _playstate,0x0d,0x0a
.CODE
.debug
.dw '.stabs "SOUND_NUM:G4",32,0,0,',0,0,offset _SOUND_NUM,seg _SOUND_NUM,0x0d,0x0a
.CODE
.debug
.dw '.stabs "VolumeIdx:G4",32,0,0,',0,0,offset _VolumeIdx,seg _VolumeIdx,0x0d,0x0a
.CODE
.debug
.dw '.stabs "writeflag:G4",32,0,0,',0,0,offset _writeflag,seg _writeflag,0x0d,0x0a
.CODE
.debug
.dw '.stabs "loopflag:G4",32,0,0,',0,0,offset _loopflag,seg _loopflag,0x0d,0x0a
.CODE
.debug
.dw '.stabs "flashaddr:G5",32,0,0,',0,0,offset _flashaddr,seg _flashaddr,0x0d,0x0a
.CODE
.debug
.dw '.stabs "timedelay:G5",32,0,0,',0,0,offset _timedelay,seg _timedelay,0x0d,0x0a
.CODE
.debug
.dw '.stabs "SndIdx:G1",32,0,0,',0,0,offset _SndIdx,seg _SndIdx,0x0d,0x0a
.CODE
.code
.debug
.dw '.stabs "uartrecvchar:F4",36,0,0,',0,0,offset _uartrecvchar,seg _uartrecvchar,0x0d,0x0a
.CODE
.public _uartrecvchar
_uartrecvchar: .proc
.debug
.dw '.stabn 0x44,0,20,',0,0
.dd LM1-_uartrecvchar
.dw 0x0d,0x0a
.code
LM1:
// total=6, vars=6
// frame_pointer_needed: 1
push bp to [sp]
sp-=6
bp=sp+1
R1=BP+9
[bp+5]=R1 // QImode move
.debug
.dw '.stabn 0x44,0,21,',0,0
.dd LM2-_uartrecvchar
.dw 0x0d,0x0a
.code
LM2:
LBB2:
.debug
.dw '.stabn 0x44,0,22,',0,0
.dd LM3-_uartrecvchar
.dw 0x0d,0x0a
.code
LM3:
//split R3, 0
R3=0 // QImode move
R4=0 // QImode move
//split [_timedelay], R3
[_timedelay]=R3 // QImode move
[_timedelay+1]=R4 // QImode move
.debug
.dw '.stabn 0x44,0,23,',0,0
.dd LM4-_uartrecvchar
.dw 0x0d,0x0a
.code
LM4:
L3:
R3=[28706] // QImode move
R1=R3&128
CMP R1,0 // QImode test
NSJZ L5 //QImode EQ
pc=L4 // Indirect jump
L5:
.debug
.dw '.stabn 0x44,0,24,',0,0
.dd LM5-_uartrecvchar
.dw 0x0d,0x0a
.code
LM5:
//split R1, [_timedelay]
R1=[_timedelay] // QImode move
R2=[_timedelay+1] // QImode move
//split [bp+1], R1
[bp+1]=R1 // QImode move
[bp+2]=R2 // QImode move
//split R1, [bp+1]
R1=[bp+1] // QImode move
R2=[bp+2] // QImode move
R3=R1+1 // HImode RD=RS+#IMM16
R4=R2+0, Carry
//split [bp+3], R3
[bp+3]=R3 // QImode move
[bp+4]=R4 // QImode move
//split R1, [bp+3]
R1=[bp+3] // QImode move
R2=[bp+4] // QImode move
//split [_timedelay], R1
[_timedelay]=R1 // QImode move
[_timedelay+1]=R2 // QImode move
//split R1, [bp+3]
R1=[bp+3] // QImode move
R2=[bp+4] // QImode move
CMP R2, 16 // HImode 1st compare
NSJNZ L6 // HImode NE
CMP R1,0
NSJNZ L6
.debug
.dw '.stabn 0x44,0,26,',0,0
.dd LM6-_uartrecvchar
.dw 0x0d,0x0a
.code
LM6:
R1=128 // QImode move
[28705]=R1 // QImode move
.debug
.dw '.stabn 0x44,0,27,',0,0
.dd LM7-_uartrecvchar
.dw 0x0d,0x0a
.code
LM7:
R1=0 // QImode move
pc=L2 // Indirect jump
L6:
.debug
.dw '.stabn 0x44,0,29,',0,0
.dd LM8-_uartrecvchar
.dw 0x0d,0x0a
.code
LM8:
R1=1 // QImode move
[28690]=R1 // QImode move
.debug
.dw '.stabn 0x44,0,30,',0,0
.dd LM9-_uartrecvchar
.dw 0x0d,0x0a
.code
LM9:
pc=L3 // Indirect jump
L4:
.debug
.dw '.stabn 0x44,0,31,',0,0
.dd LM10-_uartrecvchar
.dw 0x0d,0x0a
.code
LM10:
R1=[28707] // QImode move
[BP]=R1 // QImode move
.debug
.dw '.stabn 0x44,0,32,',0,0
.dd LM11-_uartrecvchar
.dw 0x0d,0x0a
.code
LM11:
R2=[BP] // QImode move
R2=R2&255
[BP]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,33,',0,0
.dd LM12-_uartrecvchar
.dw 0x0d,0x0a
.code
LM12:
R2=[bp+5] // QImode move
R1=[R2] // QImode move
R3=[BP] // QImode move
R2=R1 // QImode move
[R2]=R3 // QImode move
.debug
.dw '.stabn 0x44,0,34,',0,0
.dd LM13-_uartrecvchar
.dw 0x0d,0x0a
.code
LM13:
R1=1 // QImode move
pc=L2 // Indirect jump
.debug
.dw '.stabn 0x44,0,35,',0,0
.dd LM14-_uartrecvchar
.dw 0x0d,0x0a
.code
LM14:
LBE2:
.debug
.dw '.stabn 0x44,0,35,',0,0
.dd LM15-_uartrecvchar
.dw 0x0d,0x0a
.code
LM15:
L2:
sp+=6
pop bp from [sp]
retf
.endp // end of uartrecvchar
.debug
.dw '.stabs "pchar:p20=*4",160,0,0,9',0x0d,0x0a
.CODE
.debug
.dw '.stabn 0xc0,0,0,',0,0
.dd LBB2-_uartrecvchar
.dw 0x0d,0x0a
.code
.debug
.dw '.stabs "temprecv:4",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabn 0xe0,0,0,',0,0
.dd LBE2-_uartrecvchar
.dw 0x0d,0x0a
.code
.debug
.dw '.stabf ',0,0
.dd LME1-_uartrecvchar
.dw 0x0d,0x0a
.code
LME1:
.code
.debug
.dw '.stabs "Initial:F19",36,0,0,',0,0,offset _Initial,seg _Initial,0x0d,0x0a
.CODE
.public _Initial
_Initial: .proc
.debug
.dw '.stabn 0x44,0,37,',0,0
.dd LM16-_Initial
.dw 0x0d,0x0a
.code
LM16:
// total=0, vars=0
// frame_pointer_needed: 1
push bp to [sp]
bp=sp+1
R1=BP+3
.debug
.dw '.stabn 0x44,0,39,',0,0
.dd LM17-_Initial
.dw 0x0d,0x0a
.code
LM17:
R2=512 // QImode move
[28717]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,40,',0,0
.dd LM18-_Initial
.dw 0x0d,0x0a
.code
LM18:
R2=(-1) // QImode move
[28674]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,41,',0,0
.dd LM19-_Initial
.dw 0x0d,0x0a
.code
LM19:
R2=(-1) // QImode move
[28675]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,42,',0,0
.dd LM20-_Initial
.dw 0x0d,0x0a
.code
LM20:
R2=(-1) // QImode move
[28672]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,43,',0,0
.dd LM21-_Initial
.dw 0x0d,0x0a
.code
LM21:
R2=(-137) // QImode move
[28679]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,44,',0,0
.dd LM22-_Initial
.dw 0x0d,0x0a
.code
LM22:
R2=(-1) // QImode move
[28680]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,45,',0,0
.dd LM23-_Initial
.dw 0x0d,0x0a
.code
LM23:
R2=(-9) // QImode move
[28677]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,46,',0,0
.dd LM24-_Initial
.dw 0x0d,0x0a
.code
LM24:
R2=1 // QImode move
[28709]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,47,',0,0
.dd LM25-_Initial
.dw 0x0d,0x0a
.code
LM25:
R2=64 // QImode move
[28708]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,48,',0,0
.dd LM26-_Initial
.dw 0x0d,0x0a
.code
LM26:
R2=128 // QImode move
[28705]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,49,',0,0
.dd LM27-_Initial
.dw 0x0d,0x0a
.code
LM27:
R2=192 // QImode move
[28706]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,50,',0,0
.dd LM28-_Initial
.dw 0x0d,0x0a
.code
LM28:
// GCC inline ASM start
IRQ ON
// GCC inline ASM end
.debug
.dw '.stabn 0x44,0,51,',0,0
.dd LM29-_Initial
.dw 0x0d,0x0a
.code
LM29:
.debug
.dw '.stabn 0x44,0,51,',0,0
.dd LM30-_Initial
.dw 0x0d,0x0a
.code
LM30:
L10:
pop bp from [sp]
retf
.endp // end of Initial
.debug
.dw '.stabf ',0,0
.dd LME2-_Initial
.dw 0x0d,0x0a
.code
LME2:
.code
.debug
.dw '.stabs "Record:F19",36,0,0,',0,0,offset _Record,seg _Record,0x0d,0x0a
.CODE
.public _Record
_Record: .proc
.debug
.dw '.stabn 0x44,0,54,',0,0
.dd LM31-_Record
.dw 0x0d,0x0a
.code
LM31:
// total=1, vars=1
// frame_pointer_needed: 1
push bp to [sp]
sp-=1
bp=sp+1
R1=BP+4
[BP]=R1 // QImode move
.debug
.dw '.stabn 0x44,0,55,',0,0
.dd LM32-_Record
.dw 0x0d,0x0a
.code
LM32:
call _SACM_DVR1600_Initial // call without return value
.debug
.dw '.stabn 0x44,0,56,',0,0
.dd LM33-_Record
.dw 0x0d,0x0a
.code
LM33:
R1=3 // QImode move
[SP--]=R1 // QImode move
R1=0 // QImode move
[SP--]=R1 // QImode move
call _SACM_DVR1600_Rec // call without return value
SP = SP + 2 //SP
.debug
.dw '.stabn 0x44,0,57,',0,0
.dd LM34-_Record
.dw 0x0d,0x0a
.code
LM34:
L12:
call _SACM_DVR1600_Status // call with return value
R2=R1&1
CMP R2,0 // QImode test
NSJNZ L14 //QImode NE
pc=L13 // Indirect jump
L14:
.debug
.dw '.stabn 0x44,0,59,',0,0
.dd LM35-_Record
.dw 0x0d,0x0a
.code
LM35:
R1=1 // QImode move
[28690]=R1 // QImode move
.debug
.dw '.stabn 0x44,0,60,',0,0
.dd LM36-_Record
.dw 0x0d,0x0a
.code
LM36:
call _SACM_DVR1600_ServiceLoop // call without return value
.debug
.dw '.stabn 0x44,0,61,',0,0
.dd LM37-_Record
.dw 0x0d,0x0a
.code
LM37:
pc=L12 // Indirect jump
L13:
.debug
.dw '.stabn 0x44,0,62,',0,0
.dd LM38-_Record
.dw 0x0d,0x0a
.code
LM38:
.debug
.dw '.stabn 0x44,0,62,',0,0
.dd LM39-_Record
.dw 0x0d,0x0a
.code
LM39:
L11:
sp+=1
pop bp from [sp]
retf
.endp // end of Record
.debug
.dw '.stabf ',0,0
.dd LME3-_Record
.dw 0x0d,0x0a
.code
LME3:
.code
.debug
.dw '.stabs "PlayRecord:F19",36,0,0,',0,0,offset _PlayRecord,seg _PlayRecord,0x0d,0x0a
.CODE
.public _PlayRecord
_PlayRecord: .proc
.debug
.dw '.stabn 0x44,0,65,',0,0
.dd LM40-_PlayRecord
.dw 0x0d,0x0a
.code
LM40:
// total=1, vars=1
// frame_pointer_needed: 1
push bp to [sp]
sp-=1
bp=sp+1
R1=BP+4
[BP]=R1 // QImode move
.debug
.dw '.stabn 0x44,0,66,',0,0
.dd LM41-_PlayRecord
.dw 0x0d,0x0a
.code
LM41:
R1=1 // QImode move
[_playstate]=R1 // QImode move
.debug
.dw '.stabn 0x44,0,67,',0,0
.dd LM42-_PlayRecord
.dw 0x0d,0x0a
.code
LM42:
R1=3 // QImode move
[SP--]=R1 // QImode move
R1=3 // QImode move
[SP--]=R1 // QImode move
R1=[_SndIdx] // QImode move
[SP--]=R1 // QImode move
call _SACM_DVR1600_Play // call without return value
SP = SP + 3 //SP
.debug
.dw '.stabn 0x44,0,68,',0,0
.dd LM43-_PlayRecord
.dw 0x0d,0x0a
.code
LM43:
L17:
call _SACM_DVR1600_Status // call with return value
R2=R1&1
CMP R2,0 // QImode test
NSJNZ L19 //QImode NE
pc=L18 // Indirect jump
L19:
.debug
.dw '.stabn 0x44,0,70,',0,0
.dd LM44-_PlayRecord
.dw 0x0d,0x0a
.code
LM44:
R1=1 // QImode move
[28690]=R1 // QImode move
.debug
.dw '.stabn 0x44,0,71,',0,0
.dd LM45-_PlayRecord
.dw 0x0d,0x0a
.code
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -