Need help removing demo mode from a ROM

Are you new to 6502, NES, or even programming in general? Post any of your questions here. Remember - the only dumb question is the question that remains unasked.

Moderator: Moderators

Post Reply
spookgoblin
Posts: 25
Joined: Thu Jul 20, 2017 9:01 am

Need help removing demo mode from a ROM

Post by spookgoblin »

Hi there!

Does anyone know of a way to remove/turn off the demo mode (triggers from main menu and demos gameplay) from a ROM--specifically Castlevania 1?

Many thanks!
User avatar
Kasumi
Posts: 1293
Joined: Wed Apr 02, 2008 2:09 pm

Re: Need help removing demo mode from a ROM

Post by Kasumi »

Sure, here's a patch for Castlevania PRG 1.

Why, though? :lol:

Edit: Oh, you're the fiancé hack person. Just in case you're working from some modified ROM where this wouldn't work, the demo is triggered when $001E in RAM reaches zero on the title screen. When $001E is not zero, it branches to code at $B858. So I replaced the code that decrements $001E and the branch with a jmp to $B858. The jump means it ALWAYS goes where the game normally only goes if the counter is not zero. So the code that runs when the counter would reach zero in the real game (the demo stuff) never runs. Good luck!

And let me know if there are any problems with it, I spent like... five minutes on it.

Edit2: Oh, you can do it with a one byte change. $B858 is an RTS, so you can just change the opcode for dec $001E to $60. Oh well, I'm not uploading a new patch. :P
Attachments
Castlevania (U) (PRG1) (No Demo).ips
(17 Bytes) Downloaded 90 times
Post Reply