News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Author Topic: Death spikes in SMB (Update)  (Read 343 times)

Alpdrucken

  • Jr. Member
  • **
  • Posts: 17
    • View Profile
Death spikes in SMB (Update)
« on: July 21, 2019, 09:22:19 am »
I've been tinkering with SMB, trying to find a way to add hit detection from the top and the sides to a block, in order to give it injuring effects just like enemies have. With the help of the disassembly I found the routine for injuring the player; i've also been looking at this patch https://www.romhacking.net/hacks/3705/ that turns mushroom trees into death spikes. By looking at the patch I found that at least 2 offsets are responsible for this change: $1788 and $5FB8. The problem is that in the debugger these offsets are listed as undefined and I can't find anything relevant in the disassembly; how could I convert the hex values into readable ASM? Or how could I easily find where an offset is located in the disassembly? Last time I had to scroll through thousands of lines to find the matching ASM routine for "jsr injureplayer" (which is JSR $D92C).
Thanks a lot in advance :)


Cyneprepou4uk

  • Full Member
  • ***
  • Posts: 191
  • Самый лысый ромхакер
    • View Profile
Re: Death spikes in SMB (Update)
« Reply #1 on: July 21, 2019, 09:35:16 am »
Minus #10, then plus #2000 until you find it in debugger
I am the baldest romhacker
NES Romhacking Guide