📄 nrf2401.asm
字号:
// GCC for SUNPLUS u'nSP version 1.0.17
// Command: C:\PROGRA~1\Sunplus\UNSPID~1.1\unSPIDE\cc1.exe C:\DOCUME~1\glg\LOCALS~1\Temp\ccOYaaaa.i -quiet -dumpbase nRF2401.c -mglobal-var-iram -gstabs -Wall -o .\Debug/nRF2401.asm
// gcc2_compiled.:
.stabs "D:\\glg\\23无线语音传输系统礼包\\参考代码\\WirelessCom/", 0x64, 0, 3, Ltext0
.stabs "D:/glg/23蝄\336蟎\337覾\357襖\364碶\253蔦\344蟎\265蚛\263繺\361癨\374/瞈\316縗\274碶\372耚\353/WirelessCom/nRF2401.c", 0x64, 0, 3, Ltext0
.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
.public _InitData
.text
_InitData:
.dw 0
.dw 192
.dw 0
.dw 0
.dw 0
.dw 0
.dw 1
.dw 0
.dw 0
.dw 0
.dw 0
.dw 1
.dw 131
.dw 79
.dw 5
.debug
.dw '.stabs "InitData:G20=ar1;0;14;4",32,0,0,',0,0,offset _InitData,seg _InitData,0x0d,0x0a
.CODE
.debug
.dw '.stabs "AddrBuffer:G21=ar1;0;4;4",32,0,0,',0,0,offset _AddrBuffer,seg _AddrBuffer,0x0d,0x0a
.CODE
.debug
.dw '.stabs "AddrByteCnt:G4",32,0,0,',0,0,offset _AddrByteCnt,seg _AddrByteCnt,0x0d,0x0a
.CODE
.code
.debug
.dw '.stabs "nRF2401_Initial:F19",36,0,0,',0,0,offset _nRF2401_Initial,seg _nRF2401_Initial,0x0d,0x0a
.CODE
.public _nRF2401_Initial
_nRF2401_Initial: .proc
.debug
.dw '.stabn 0x44,0,73,',0,0
.dd LM1-_nRF2401_Initial
.dw 0x0d,0x0a
.code
LM1:
// 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,74,',0,0
.dd LM2-_nRF2401_Initial
.dw 0x0d,0x0a
.code
LM2:
R1=152 // QImode move
[28691]=R1 // QImode move
.debug
.dw '.stabn 0x44,0,75,',0,0
.dd LM3-_nRF2401_Initial
.dw 0x0d,0x0a
.code
LM3:
R1=[28680] // QImode move
R2=R1|63
[28680]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,76,',0,0
.dd LM4-_nRF2401_Initial
.dw 0x0d,0x0a
.code
LM4:
R1=[28679] // QImode move
R2=R1|55
[28679]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,77,',0,0
.dd LM5-_nRF2401_Initial
.dw 0x0d,0x0a
.code
LM5:
R1=[28679] // QImode move
R2=R1&(-9)
[28679]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,78,',0,0
.dd LM6-_nRF2401_Initial
.dw 0x0d,0x0a
.code
LM6:
R1=[28678] // QImode move
R2=R1&(-63)
[28678]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,80,',0,0
.dd LM7-_nRF2401_Initial
.dw 0x0d,0x0a
.code
LM7:
R1=300 // QImode move
[SP--]=R1 // QImode move
call _Delay_Us // call without return value
SP=SP+1
.debug
.dw '.stabn 0x44,0,81,',0,0
.dd LM8-_nRF2401_Initial
.dw 0x0d,0x0a
.code
LM8:
call _nRF2401_ON // call without return value
.debug
.dw '.stabn 0x44,0,82,',0,0
.dd LM9-_nRF2401_Initial
.dw 0x0d,0x0a
.code
LM9:
R1=5000 // QImode move
[SP--]=R1 // QImode move
call _Delay_Us // call without return value
SP=SP+1
.debug
.dw '.stabn 0x44,0,83,',0,0
.dd LM10-_nRF2401_Initial
.dw 0x0d,0x0a
.code
LM10:
call _nRF2401_WriteCommand // call without return value
.debug
.dw '.stabn 0x44,0,84,',0,0
.dd LM11-_nRF2401_Initial
.dw 0x0d,0x0a
.code
LM11:
R1=2000 // QImode move
[SP--]=R1 // QImode move
call _Delay_Us // call without return value
SP=SP+1
.debug
.dw '.stabn 0x44,0,85,',0,0
.dd LM12-_nRF2401_Initial
.dw 0x0d,0x0a
.code
LM12:
.debug
.dw '.stabn 0x44,0,85,',0,0
.dd LM13-_nRF2401_Initial
.dw 0x0d,0x0a
.code
LM13:
L2:
sp+=1
pop bp from [sp]
retf
.endp // end of nRF2401_Initial
.debug
.dw '.stabf ',0,0
.dd LME1-_nRF2401_Initial
.dw 0x0d,0x0a
.code
LME1:
.code
.debug
.dw '.stabs "nRF2401_ON:F19",36,0,0,',0,0,offset _nRF2401_ON,seg _nRF2401_ON,0x0d,0x0a
.CODE
.public _nRF2401_ON
_nRF2401_ON: .proc
.debug
.dw '.stabn 0x44,0,94,',0,0
.dd LM14-_nRF2401_ON
.dw 0x0d,0x0a
.code
LM14:
// total=0, vars=0
// frame_pointer_needed: 1
push bp to [sp]
bp=sp+1
R1=BP+3
.debug
.dw '.stabn 0x44,0,95,',0,0
.dd LM15-_nRF2401_ON
.dw 0x0d,0x0a
.code
LM15:
R2=[28678] // QImode move
R3=R2|1
[28678]=R3 // QImode move
.debug
.dw '.stabn 0x44,0,96,',0,0
.dd LM16-_nRF2401_ON
.dw 0x0d,0x0a
.code
LM16:
.debug
.dw '.stabn 0x44,0,96,',0,0
.dd LM17-_nRF2401_ON
.dw 0x0d,0x0a
.code
LM17:
L3:
pop bp from [sp]
retf
.endp // end of nRF2401_ON
.debug
.dw '.stabf ',0,0
.dd LME2-_nRF2401_ON
.dw 0x0d,0x0a
.code
LME2:
.code
.debug
.dw '.stabs "nRF2401_OFF:F19",36,0,0,',0,0,offset _nRF2401_OFF,seg _nRF2401_OFF,0x0d,0x0a
.CODE
.public _nRF2401_OFF
_nRF2401_OFF: .proc
.debug
.dw '.stabn 0x44,0,105,',0,0
.dd LM18-_nRF2401_OFF
.dw 0x0d,0x0a
.code
LM18:
// total=0, vars=0
// frame_pointer_needed: 1
push bp to [sp]
bp=sp+1
R1=BP+3
.debug
.dw '.stabn 0x44,0,106,',0,0
.dd LM19-_nRF2401_OFF
.dw 0x0d,0x0a
.code
LM19:
R2=[28678] // QImode move
R3=R2&(-2)
[28678]=R3 // QImode move
.debug
.dw '.stabn 0x44,0,107,',0,0
.dd LM20-_nRF2401_OFF
.dw 0x0d,0x0a
.code
LM20:
.debug
.dw '.stabn 0x44,0,107,',0,0
.dd LM21-_nRF2401_OFF
.dw 0x0d,0x0a
.code
LM21:
L4:
pop bp from [sp]
retf
.endp // end of nRF2401_OFF
.debug
.dw '.stabf ',0,0
.dd LME3-_nRF2401_OFF
.dw 0x0d,0x0a
.code
LME3:
.code
.debug
.dw '.stabs "nRF2401_WriteCommand:F19",36,0,0,',0,0,offset _nRF2401_WriteCommand,seg _nRF2401_WriteCommand,0x0d,0x0a
.CODE
.public _nRF2401_WriteCommand
_nRF2401_WriteCommand: .proc
.debug
.dw '.stabn 0x44,0,116,',0,0
.dd LM22-_nRF2401_WriteCommand
.dw 0x0d,0x0a
.code
LM22:
// total=2, vars=2
// frame_pointer_needed: 1
push bp to [sp]
sp-=2
bp=sp+1
R1=BP+5
[bp+1]=R1 // QImode move
.debug
.dw '.stabn 0x44,0,117,',0,0
.dd LM23-_nRF2401_WriteCommand
.dw 0x0d,0x0a
.code
LM23:
LBB2:
.debug
.dw '.stabn 0x44,0,118,',0,0
.dd LM24-_nRF2401_WriteCommand
.dw 0x0d,0x0a
.code
LM24:
R1=[28678] // QImode move
R2=R1&(-3)
[28678]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,119,',0,0
.dd LM25-_nRF2401_WriteCommand
.dw 0x0d,0x0a
.code
LM25:
R1=[28678] // QImode move
R2=R1|4
[28678]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,120,',0,0
.dd LM26-_nRF2401_WriteCommand
.dw 0x0d,0x0a
.code
LM26:
R1=5 // QImode move
[SP--]=R1 // QImode move
call _Delay_Us // call without return value
SP=SP+1
.debug
.dw '.stabn 0x44,0,121,',0,0
.dd LM27-_nRF2401_WriteCommand
.dw 0x0d,0x0a
.code
LM27:
R1=0 // QImode move
[BP]=R1 // QImode move
L6:
R1=[BP] // QImode move
CMP R1,14 // QImode compare
JA L10 // QImode LEU
PC=L9
L10:
pc=L7 // Indirect jump
L9:
.debug
.dw '.stabn 0x44,0,123,',0,0
.dd LM28-_nRF2401_WriteCommand
.dw 0x0d,0x0a
.code
LM28:
R1=_InitData // QImode move
R2=[BP] // QImode move
R1+=R2 // addqi3_r0r
R3=R1 // QImode move
R2=[R3] // QImode move
[SP--]=R2 // QImode move
call _nRF2401_WriteByte // call without return value
SP=SP+1
.debug
.dw '.stabn 0x44,0,121,',0,0
.dd LM29-_nRF2401_WriteCommand
.dw 0x0d,0x0a
.code
LM29:
L8:
R1=[BP] // QImode move
R2=R1+1
[BP]=R2 // QImode move
pc=L6 // Indirect jump
L7:
.debug
.dw '.stabn 0x44,0,125,',0,0
.dd LM30-_nRF2401_WriteCommand
.dw 0x0d,0x0a
.code
LM30:
R1=[28678] // QImode move
R2=R1&(-5)
[28678]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,126,',0,0
.dd LM31-_nRF2401_WriteCommand
.dw 0x0d,0x0a
.code
LM31:
R1=[28678] // QImode move
R2=R1|2
[28678]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,127,',0,0
.dd LM32-_nRF2401_WriteCommand
.dw 0x0d,0x0a
.code
LM32:
LBE2:
.debug
.dw '.stabn 0x44,0,127,',0,0
.dd LM33-_nRF2401_WriteCommand
.dw 0x0d,0x0a
.code
LM33:
L5:
sp+=2
pop bp from [sp]
retf
.endp // end of nRF2401_WriteCommand
.debug
.dw '.stabn 0xc0,0,0,',0,0
.dd LBB2-_nRF2401_WriteCommand
.dw 0x0d,0x0a
.code
.debug
.dw '.stabs "i:4",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabn 0xe0,0,0,',0,0
.dd LBE2-_nRF2401_WriteCommand
.dw 0x0d,0x0a
.code
.debug
.dw '.stabf ',0,0
.dd LME4-_nRF2401_WriteCommand
.dw 0x0d,0x0a
.code
LME4:
.code
.debug
.dw '.stabs "nRF2401_Mode:F19",36,0,0,',0,0,offset _nRF2401_Mode,seg _nRF2401_Mode,0x0d,0x0a
.CODE
.public _nRF2401_Mode
_nRF2401_Mode: .proc
.debug
.dw '.stabn 0x44,0,136,',0,0
.dd LM34-_nRF2401_Mode
.dw 0x0d,0x0a
.code
LM34:
// 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,137,',0,0
.dd LM35-_nRF2401_Mode
.dw 0x0d,0x0a
.code
LM35:
R1=[28678] // QImode move
R2=R1&(-3)
[28678]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,138,',0,0
.dd LM36-_nRF2401_Mode
.dw 0x0d,0x0a
.code
LM36:
R1=[28678] // QImode move
R2=R1|4
[28678]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,139,',0,0
.dd LM37-_nRF2401_Mode
.dw 0x0d,0x0a
.code
LM37:
R2=[BP] // QImode move
R1=[R2] // QImode move
CMP R1,0 // QImode test
JZ L14 // QImode NE
PC=L12
L14:
.debug
.dw '.stabn 0x44,0,140,',0,0
.dd LM38-_nRF2401_Mode
.dw 0x0d,0x0a
.code
LM38:
R2=[_InitData+14] // QImode move
R1=R2|1
[SP--]=R1 // QImode move
call _nRF2401_WriteByte // call without return value
SP=SP+1
pc=L13 // Indirect jump
L12:
.debug
.dw '.stabn 0x44,0,142,',0,0
.dd LM39-_nRF2401_Mode
.dw 0x0d,0x0a
.code
LM39:
R2=[_InitData+14] // QImode move
R1=R2&254
[SP--]=R1 // QImode move
call _nRF2401_WriteByte // call without return value
SP=SP+1
L13:
.debug
.dw '.stabn 0x44,0,143,',0,0
.dd LM40-_nRF2401_Mode
.dw 0x0d,0x0a
.code
LM40:
R1=[28678] // QImode move
R2=R1&(-5)
[28678]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,144,',0,0
.dd LM41-_nRF2401_Mode
.dw 0x0d,0x0a
.code
LM41:
R1=[28678] // QImode move
R2=R1|2
[28678]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,145,',0,0
.dd LM42-_nRF2401_Mode
.dw 0x0d,0x0a
.code
LM42:
.debug
.dw '.stabn 0x44,0,145,',0,0
.dd LM43-_nRF2401_Mode
.dw 0x0d,0x0a
.code
LM43:
L11:
sp+=1
pop bp from [sp]
retf
.endp // end of nRF2401_Mode
.debug
.dw '.stabs "uiMode:p4",160,0,0,4',0x0d,0x0a
.CODE
.debug
.dw '.stabf ',0,0
.dd LME5-_nRF2401_Mode
.dw 0x0d,0x0a
.code
LME5:
.code
.debug
.dw '.stabs "nRF2401_SetAddress:F19",36,0,0,',0,0,offset _nRF2401_SetAddress,seg _nRF2401_SetAddress,0x0d,0x0a
.CODE
.public _nRF2401_SetAddress
_nRF2401_SetAddress: .proc
.debug
.dw '.stabn 0x44,0,155,',0,0
.dd LM44-_nRF2401_SetAddress
.dw 0x0d,0x0a
.code
LM44:
// total=2, vars=2
// frame_pointer_needed: 1
push bp to [sp]
sp-=2
bp=sp+1
R1=BP+5
.debug
.dw '.stabn 0x44,0,156,',0,0
.dd LM45-_nRF2401_SetAddress
.dw 0x0d,0x0a
.code
LM45:
LBB3:
.debug
.dw '.stabn 0x44,0,157,',0,0
.dd LM46-_nRF2401_SetAddress
.dw 0x0d,0x0a
.code
LM46:
R2=0 // QImode move
[BP]=R2 // QImode move
L16:
R2=R1 // QImode move
R3=R1+1
R2=[BP] // QImode move
R4=R3 // QImode move
CMP R2,[R4] // QImode compare
JNB L20 // QImode LTU
PC=L19
L20:
pc=L17 // Indirect jump
L19:
.debug
.dw '.stabn 0x44,0,159,',0,0
.dd LM47-_nRF2401_SetAddress
.dw 0x0d,0x0a
.code
LM47:
R2=_AddrBuffer // QImode move
R3=[BP] // QImode move
R2+=R3 // addqi3_r0r
R3=R1 // QImode move
R4=[R3] // QImode move
R3=R4 // QImode move
R3+=[BP] // addqi3_r0R
R4=R3 // QImode move
R4=[R4] // QImode move
[bp+1]=R4 // QImode move
R3=[bp+1] // QImode move
R4=R2 // QImode move
[R4]=R3 // QImode move
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -