Advertisement
Zoinkity

DnM Full Debugger Notes

Sep 28th, 2022
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.19 KB | None | 0 0
  1. * All controller input, unless otherwise noted, is on controller 2.
  2.  
  3. Input the Zelda debug code on controller 2 to activate debugger. The letter "D" will appear in the upper-right corner of the screen and input in the lower-right.
  4. L+R+Z
  5. + up
  6. C down
  7. C up
  8. + down
  9. + left
  10. C left
  11. C right
  12. + right
  13. A+B+Start
  14. Hold Recenter on controller 1 when entering code (at least at the final input) to activate all Famicom features. This sets the 0x10 flag in osAppNMIBuffer+3F.
  15.  
  16.  
  17. Color of the letter "D" indicates the current mode:
  18. yellow 1 debugger lvl1, Resetti enabled
  19. pink 2|1 debugger lvl1
  20. green 8|1 debugger lvl2, Resetti enabled
  21. gray 8|2|1 debugger lvl2
  22.  
  23. osAppNMIBuffer+3F stores flags for the debugger:
  24. 01 debugger active/disabled
  25. 02 when True, prevents Resetti
  26. 04 on reset, sets disable Resetti flag and clears itself
  27. 08 extended debugger enabled
  28. 10 enables all Famicom emulator special features
  29.  
  30. .: Main Display :.
  31. Left of "D", two error codes will always be displayed when relevant.
  32.  
  33. *) Bad Town Data
  34. "X" is displayed if towndata[0xF8AC] is zero.
  35.  
  36. *) FLASH Error Codes
  37. If not displayed, no error is present.
  38. "N" not found or no good
  39. A failure occurred during initialization or it's an unrecognized chip ID.
  40. "A" allocation error
  41. Failed to allocate a 0xF980 byte temporary buffer.
  42. "W" write error
  43. "R" read error
  44. "C" checksum error
  45. "O" other
  46. Typically due to a mismatch b/w master and its copy.
  47. Naturally occurs with uninitialized/erased saves since the copy isn't valid yet.
  48.  
  49.  
  50. .: Extended Debugger (R/W) :.
  51. Available when GUID version = 0x23 ("NAFJ#")
  52. Sets flag 8 in osAppNMIBuffer+3F.
  53.  
  54. *) Create Famicom
  55. Press + down to display the Famicom menu. Press start to advance the value, from 0 to 7.
  56. When in your home, press Z place it in your home.
  57. 0 Clu Clu Land
  58. 1 Balloon Fight
  59. 2 Donkey Kong
  60. 3 Donkey Kong Jr. Math
  61. 4 Pinball
  62. 5 Tennis
  63. 6 Golf
  64. 7 FDS; plays games from Controller Pak 1 or 2
  65.  
  66. *) Memory View/Edit
  67. Hold the given button while pressing the other to display the menu.
  68. While holding the button, press the other again to display additional pages. There are 96 signed 16bit values (hw) in each list (0xC0 per block).
  69. When released, use + up/down to select an address. Press + left/right to change values; hold C down to change in faster increments.
  70. To clear from the screen, input the button sequence for any of the menus below.
  71. HOLD PRESS address (J) address (iQue) displayed name
  72. L R 801DFE24 801F0144 Y(SBREG)
  73. L + left 801DFEE4 801F0204 D(DREG)
  74. L + right 801DFFA4 801F02C4 U(UREG)
  75. L + up 801E0064 801F0384 I(IREG)
  76. L + down 801E02A4 801F05C4 N(NS1)
  77. L A 801DFBE4 801EFF04 P(PREG)
  78. L B 801E0124 801F0444 Z(ZREG)
  79. L Z 801E01E4 801F0504 C(CRV)
  80. L Start 801E0A24 801F0D44 G(GREG)
  81. L C left 801DFA64 801EFD84 S(SREG)
  82. L C right 801DFD64 801F0084 M(MREG)
  83. L C up 801DF9A4 801EFCC4 (REG)
  84. L C down 801DFB24 801EFE44 O(OREG)
  85. R L 801E05A4 801F08C4 s(DEMOREG)
  86. R + left 801E07E4 801F0B04 A(AREG)
  87. R + right 801E0AE4 801F0E04 m(mREG)
  88. R + up 801E0BA4 801F0EC4 n(nREG)
  89. R + down -------- -------- *pause execution*
  90. R A 801E0364 801F0684 K(SND)
  91. R B 801E0424 801F0744 X(XREG)
  92. R Z 801E04E4 801F0804 C(CRV2)
  93. R Start 801E0964 801F0C84 H(HREG)
  94. R C left 801E08A4 801F0BC4 V(VREG)
  95. R C right 801E0724 801F0A44 W(WREG)
  96. R C up 801E0664 801F0984 i(TREG)
  97. R C down 801DFCA4 801EFFC4 Q(QREG)
  98. Start L 801E10E4 801F1404 *(NIIREG)
  99. Start R 801E0C64 801F0F84 B(BREG)
  100. Start + left 801E14A4 801F17C4 *(TAKREG)
  101. Start + right 801E13E4 801F1704 *(SAKREG)
  102. Start + up 801E1324 801F1644 *(CAMREG)
  103. Start + down 801E1564 801F1884 *(PL2REG)
  104. Start A 801E0D24 801F1044 d(DORO)
  105. Start B 801E0DE4 801F1104 k(kREG)
  106. Start Z 801E11A4 801F14C4 *(GENREG)
  107. Start C left 801E0F64 801F1284 *(PLAYERREG)
  108. Start C right 801E0EA4 801F11C4 b(BAK)
  109. Start C up 801E1264 801F1584 *(MYKREG)
  110. Start C down 801E1024 801F1344 *(OTUREG)
  111.  
  112. *) Clock Rate Adjust
  113. * Note: only use this feature if a clock is on the board! Does not safely fall back to default buffer!
  114. Hold R to change the rate time advances. Settings are roughly an hour a minute, an hour every ten seconds, then restore clock using RTC.
  115. When active, the framecount will be displayed on the line just below "D".
  116.  
  117.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement