progress.. need to make distclean not delete stuff in doc
This commit is contained in:
parent
2ea5f005ee
commit
ddc0cd6139
11
doc/cal1.dump
Normal file
11
doc/cal1.dump
Normal file
|
@ -0,0 +1,11 @@
|
|||
(gdb) x/40x 0x4051e4
|
||||
0x4051e4 <gRadioTOCCal1>: 0x80003048 0x00000f78 0x8000304c 0x00607707
|
||||
0x4051f4 <gRadioTOCCal1+16>: 0x00000000 0x000161a8 0x8000a050 0x0000047b
|
||||
0x405204 <gRadioTOCCal1+32>: 0x8000a054 0x0000007b 0x00005dc0 0x00000000
|
||||
0x405214 <gu8BuckEnable>: 0x00000000 0x00000000 0x00000000 0x00000000
|
||||
0x405224 <buffer_radio_init+12>: 0x00000000 0x80009400 0x00000017 0x8000a050
|
||||
0x405234 <gRadioTOCCal5+12>: 0x00000000 0x8000a054 0x00000000 0x80003048
|
||||
0x405244 <gRadioTOCCal5+28>: 0x00000f00 0x00000000 0x00000000 0x10000108
|
||||
0x405254 <mLineParams+8>: 0x03180002 0x00042000 0x30000528 0x07380006
|
||||
0x405264 <??isPageDeleted>: 0x0000fd01 0xc60081ff 0xb90f0000 0xc51e0000
|
||||
0x405274: 0x00901200 0x05030080 0x00900480 0x00010180
|
56
doc/radioinit
Normal file
56
doc/radioinit
Normal file
|
@ -0,0 +1,56 @@
|
|||
Entries in ram are processed by SMACinitfrommemory and executeentry
|
||||
(which does the work). I suspect that these entries are loaded in from
|
||||
the rom from the rom_data_init call in the beginning stub. For now
|
||||
we'll do the simple thing of performing the actions they do, but for
|
||||
real it would be better to load out from ROM and execute the entries
|
||||
in a similar way. That way, if the cal data changes in the ROM, our
|
||||
code should still work.
|
||||
|
||||
When radioinit first starts it seems to do checks for a 24MHZ clock
|
||||
and if the buck should be enabled. Assuming 24MHZ and no buck the next
|
||||
things it does is 5 entries in cal1 (40 bytes, 4 bytes per word, = 10
|
||||
words, 2 words per entry = 5 entrys)
|
||||
|
||||
0x80003048
|
||||
0x00000f78
|
||||
|
||||
0x8000304c
|
||||
0x00607707
|
||||
|
||||
the next entry is zero addr with val 0x000161a8... this is a delay
|
||||
entry. Loop here 0x000161a8 times. then return.
|
||||
|
||||
0x00000000
|
||||
0x000161a8
|
||||
|
||||
Then two more memory stuffs:
|
||||
|
||||
0x8000a050
|
||||
0x0000047b
|
||||
|
||||
0x8000a054
|
||||
0x0000007b
|
||||
|
||||
then it seems like the emulator dies on the stack munging they do at
|
||||
the end of InitFromMemory... but I think I've decoded the entry
|
||||
enough to figure out the rest.
|
||||
|
||||
but it looks like they then redo the first entry in cal1
|
||||
|
||||
0x80003048
|
||||
0x00000f78
|
||||
|
||||
then they do 11 entries in cal3 (need dump)
|
||||
|
||||
then 4 entries from r5+24 (need to check what r5 has... 0x4051e4
|
||||
should dump this)
|
||||
|
||||
then 44 regreplacment entries
|
||||
|
||||
then flash init. (hrmm.. this might be important)
|
||||
|
||||
then flyback init.
|
||||
|
||||
then some other stuff. (need to check this out closley)
|
||||
|
||||
|
Loading…
Reference in a new issue