Ok, thanks! I'm just wondering why do they have to make things so difficult, couldn't they just have shown a small source snippet that would do that?
I dumped the library and tried to decipher it, this is what I came up with:
CODE00000000 :
ÂÂ 0:ÂÂÂÂ3c05b000 ÂÂÂÂluiÂÂÂÂa1,0xb000
ÂÂ 4:ÂÂÂÂ3c04b301 ÂÂÂÂluiÂÂÂÂa0,0xb301
ÂÂ 8:ÂÂÂÂ34a60010 ÂÂÂÂoriÂÂÂÂa2,a1,0x10
ÂÂ c:ÂÂÂÂ34840080 ÂÂÂÂoriÂÂÂÂa0,a0,0x80
ÂÂ10:ÂÂÂÂ8cc70000 ÂÂÂÂlwÂÂÂÂa3,0(a2)ÂÂÂÂÂÂÂÂorig_CPM_CPPCR = CPM_CPPCR; (Power Control Register?)
ÂÂ14:ÂÂÂÂ8c880000 ÂÂÂÂlwÂÂÂÂt0,0(a0)ÂÂÂÂÂÂÂÂorig_EMC_DMCR = EMC_DMCR; (DRAM Control Register)
ÂÂ18:ÂÂÂÂ3c020200 ÂÂÂÂluiÂÂÂÂv0,0x200
ÂÂ1c:ÂÂÂÂ01021025 ÂÂÂÂorÂÂÂÂv0,t0,v0
ÂÂ20:ÂÂÂÂac820000 ÂÂÂÂswÂÂÂÂv0,0(a0)ÂÂÂÂÂÂÂÂEMC_DMCR = orig_EMC_DMCR | 0x02000000;
ÂÂ24:ÂÂÂÂ34a50004 ÂÂÂÂoriÂÂÂÂa1,a1,0x4
ÂÂ28:ÂÂÂÂ24020004 ÂÂÂÂliÂÂÂÂv0,4
ÂÂ2c:ÂÂÂÂ34e30200 ÂÂÂÂoriÂÂÂÂv1,a3,0x200
ÂÂ30:ÂÂÂÂacc30000 ÂÂÂÂswÂÂÂÂv1,0(a2)ÂÂÂÂÂÂÂÂCPM_CPPCR = orig_CPM_CPPCR | 0x0200;
ÂÂ34:ÂÂÂÂaca20000 ÂÂÂÂswÂÂÂÂv0,0(a1)ÂÂÂÂÂÂÂÂCPM_LCR = 4;
ÂÂ38:ÂÂÂÂacc70000 ÂÂÂÂswÂÂÂÂa3,0(a2)ÂÂÂÂÂÂÂÂCPM_CPPCR = orig_CPM_CPPR;
ÂÂ3c:ÂÂÂÂac880000 ÂÂÂÂswÂÂÂÂt0,0(a0)ÂÂÂÂÂÂÂÂEMC_DMCR = orig_EMC_DMCR;
ÂÂ40:ÂÂÂÂ03e00008 ÂÂÂÂjrÂÂÂÂra
ÂÂ44:ÂÂÂÂ00000000 ÂÂÂÂnop
The register names are from JZ4740.h, I haven't looked at the data sheets to see what exactly those registers do.
Pate