Main Menu
Main Page
Forums
New pages
Recent changes
Random page
Help

Glitches
Arbitrary code execution
Pokémon cloning
Pomeg glitch and Glitzer Popping
Tweaking and voiding
Glitches by generation
Other glitch categories

References/Resources
Databases
Disassembly projects
The Big HEX List
Interactive tools
Reference documents
Terminology

Affiliates
Legendary Star Blob 2 (Hakuda) (日本語/Japanese)
Pokémon Speedruns wiki (English)
PRAMA Initiative (Français/French)
MissingNo. Glitch City (Italiano/Italian)
Become an affiliate!

Technical
Site source code

Search Wiki

 

Search Forums

 

Author Topic: JumpTable patch idea/dumping ACE pointers with no emulator with Game Genie?  (Read 230 times)

0 Members and 1 Guest are viewing this topic.

Evie the Bird Mother 🌸 ☽

  • Veteran Contributor
  • *
  • Offline Offline
  • Gender: Female
    • View Profile
There isn't a mistake, for whatever reason, that section of ROM actually has a JP D6D2 right in that spot (like, no other unintended code executed, just jp D6D2).

Also, just to note, if you're using breakpoints, you could just do a breakpoint at 0032, since the game uses rst JumpTable for item execution (although you could just go to where it has a list of the execution pointers... which will be in little endian and the unusable items have execution pointers too (they're just unusable) so you have to make sure to skip those).

EDIT: Also, 21CB is big endian, CB21 is little endian. It doesn't point to RAM, it points to ROM (which then jumps to RAM).


I'm wondering if the JumpTable (s) in Generations I/II could be patched with Game Genie to not run code but dump it in RAM; for instance, whenever you use an arbitrary code execution, it instead replacing your items with the effect pointer, so that 8F prints D1 63 as TM09 x99 or similar.
✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿
Here have some free flowers on every post. ^^
✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿
Love, faith, hope are free. If all is lost friends save us.
Thanks fans for Torchic artwork. ♡ First image thanks Nyapon.

CasualPokePlayer

  • GCLF Member
  • Offline Offline
  • Gender: Male
  • My name is a lie
    • View Profile
Not exactly a good idea, since rst JumpTable is also used by other functions (including several overworld functions, and another function before right before that for jumping to the get item effect function).

Although, you could just make it so it prints out the effect pointer based on the starting point of those pointers (in English and Korean Gold, they both start the pointer list at 3:67C0, Gen 1 and other localizations probably have it somewhere else, wouldn't be too hard to hunt them down with bgb breakpoints). Also note, the pointer list is in little endian so keep that in mind when making such ACE.
« Last Edit: February 28, 2020, 09:09:35 pm by CasualPokePlayer »

Evie the Bird Mother 🌸 ☽

  • Veteran Contributor
  • *
  • Offline Offline
  • Gender: Female
    • View Profile
Not exactly a good idea, since rst JumpTable is also used by other functions (including several overworld functions, and another function before right before that for jumping to the get item effect function).

Although, you could just make it so it prints out the effect pointer based on the starting point of those pointers (in English and Korean Gold, they both start the pointer list at 3:67C0, Gen 1 and other localizations probably have it somewhere else, wouldn't be too hard to hunt them down with bgb breakpoints). Also note, the pointer list is in little endian so keep that in mind when making such ACE.

Thanks CasualPokePlayer :)
✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿
Here have some free flowers on every post. ^^
✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿
Love, faith, hope are free. If all is lost friends save us.
Thanks fans for Torchic artwork. ♡ First image thanks Nyapon.