A bit of fun? Zelda for the Nes Cheat / Glitch
A bit of fun? Zelda for the Nes Cheat / Glitch
I came across this before I started learning 6502... maybe you've seen it already?
It's a trick where by manipulating the bytes in memory, and then exploiting a bug, the player can cause the manipulated bytes to be executed!
The video goes into a lot of detail of the 6502 commands executed, and also discusses the way the game engine handles sprites and enemy movement in memory...
I also think it's a great example of how random the cause of crashes can be, and how you may think you've debugged everything, but one little bug may still be sneaking around!
Chibi Akuma(s) Comedy-Horror 8-bit Bullet Hell shooter! // 「チビ悪魔」可笑しいゴシックSTG ! // Work in Progress: ChibiAliens
Interested in CPU's :Z80,6502,68000,6809,ARM,8086,RISC-V
Learning: 65816,ARM,8086,6809
Interested in CPU's :Z80,6502,68000,6809,ARM,8086,RISC-V
Learning: 65816,ARM,8086,6809
Re: A bit of fun? Zelda for the Nes Cheat / Glitch
What a thing to find; I imagine it was found with a disassembler and some patience, whilst generally looking for stuff, rather than because anyone stumbled over weird behaviour and decided to go spelunking to see what was happening.
robsoft : weareroad.co.uk
-
- Posts: 34
- Joined: Thu Apr 22, 2021 9:30 pm
Re: A bit of fun? Zelda for the Nes Cheat / Glitch
That's quite interesting. It really highlights what happens when the program counter goes somewhere it shouldn't. (The program counter will read anything it sees as executable code. Even if it's the game's graphics, zero page ram, etc. This often happens if you RTS without a JSR first)