Advertisement
Guest User

Untitled

a guest
Apr 19th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. [18:30] ->> You joined channel #n64dev
  2. [18:30] ->> Channel Modes are: +tnl 4300
  3. [18:30] ->> Channel created on 23/08/2007 23:25:12
  4. [18:30] * lameboy sets mode +o [krom] for #n64dev
  5. [18:33] <@[krom]> hey is anyone around? I have a couple of questions to ask...
  6. [18:34] <@marshallh> no
  7. [18:34] <@marshallh> :P
  8. [18:35] <@[krom]> heh o.k I will come back later =D
  9. [18:35] <@marshallh> what is it
  10. [18:36] <@[krom]> I am making a n64 debugger/emu and I just need to know 2 things about the boot rom...
  11. [18:37] <@[krom]> Where in memory does the pifdata.bin get stored (currently I have it at 0x1FC00000)
  12. [18:38] <@[krom]> and does the Program Counter start at a different offset than 0x1BC00000 to execute it?
  13. [18:38] <@marshallh> r4300 nmi is 0xbfc00000
  14. [18:38] <@[krom]> I mean 0x1FC00000 to execute it
  15. [18:38] <@marshallh> which is mirrored
  16. [18:39] <@[krom]> ah but I thought we can & 0x1FFFFFFF to get the address...
  17. [18:39] <@[krom]> e.g mirroring...
  18. [18:40] <@[krom]> but does the boot rom get copied to a different location for execution, at boot up?
  19. [18:41] <@marshallh> well
  20. [18:41] <@marshallh> the r4300 executes a bit from the PIF directly
  21. [18:41] <@marshallh> but then copies the remainder to IMEM and executes there
  22. [18:44] <@[krom]> ah that makes sense now! I get to the instruction JR T3, which makes the PC jump to 0x04001000..., do I just copy the remainder of the pif to that location?
  23. [18:45] <@[krom]> and execute from there?
  24. [18:48] <@[krom]> ah o.k you just told me the answer anyway, thanks for your help ;)
  25. [18:48] <@marshallh> ya
  26. [18:49] <@marshallh> you just copy the rest there
  27. [18:49] <@marshallh> the next bit does PIF security and copies the bootcode from the game rom into DMEM and runs it
  28. [18:50] <@[krom]> cheers for all the info, I have to rush off to the pub, take care =D
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement