搜集了一些资料,可以把Gx 芯片的 BIN代码,反汇编成 ASM 代码,对学习GX相关知识 ,BIN研究很有帮助。希望广交朋友。
__reset:
C0000200:R4=0x00008000;
C0000202:R4=R4-1;
C0000204:if((R4 & R4) !=0) C=1;
C0000206:if(C)goto C0000202;
//配置新增PLL时钟
// F R D0 D1 D2 reset0 reset1 reset2 reset3 reset4 reset6 pd
lrw r1,(DIVF<<28) | (DIVR<<24) | (4<<20) | (3<<16) | (3<<12) | (0<<11) | (0<<10) | (0<<9) | (0<<8) | (0<<7) | (0<<5) | (0<<4)
lrw r2,0xcc001c
stw r1,(r2)
C0000208:R1=0x52433000;
C000020a:R2=0x00cc001c;
---------------------------------------------------------
//lrw r7, __stack_end
//lrw r10, __stack_begin
C00002c6:R7 =0x86106ef0; __stack_end
C00002c8:R10=0x86109ef0; __stack_begin
C00002ca:R0=R10; //= 0x86109ef0
C00002cc:R5=0x00101e6c; //__bss_begin
C00002ce:R6=0x00103d9e;// __bss_end
---------------------------------------------------------------
_starts:
ssssssssssssssssssssssssssssssssssssss
lrw r6,PRIO0//Fast3 UART
movi r7,0x01
stw r7,(r6)
C0000778:R6=0x00c50000;// PRIO0//Fast3 UART
C000077a:R7=1;
C000077c:C_WM((0)+R6,R7,4);
lrw r6,PRIO1//Normal0 TIMER1
movi r7,0x00
stw r7,(r6)
C000077e:R6=0x00c50004;/ PRIO1//Normal0 TIMER1/