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

Glitches
Arbitrary code execution
Pokémon cloning
Pomeg glitch
Tweaking
Glitches by generation
Glitch categories

References/Resources
Databases
Disassembly projects
The Big HEX List
Pokémon cheat codes
Pokémon glitch terminology
Useful tools
More

Affiliates
Legendary Star Blob 2 (Hakuda)
Pokémon Speedruns wiki
PRAMA Initiative
Become an affiliate!

Technical
Site source code

Search Wiki

 

Search Forums

 

Author Topic: Idea for Pokémon Stadium Nintendo 64 arbitrary code execution  (Read 1086 times)

0 Members and 1 Guest are viewing this topic.

Quirky Flower Chicken ❤✿

  • Head Administrator
  • *****
  • Offline Offline
  • Gender: Female
  • Characters © Tsuburaya, Sanrio, Nintendo/TOSE
    • View Profile
Idea for Pokémon Stadium Nintendo 64 arbitrary code execution
« on: January 11, 2017, 11:34:23 am »
Aru Aru made a box full of Diglett with different types and when the 'graphic' for one of the (presumably) glitch types was displayed the game locked up.

Could we theoretically adjust a Pokémon's stored typing (e.g. addresses D170 and D171) and find a glitch type which executes ideal arbitrary code (maybe from Pokédex flags) or something else that can vary in the memory?
 
https://www.youtube.com/watch?v=ZOaG2aYqQno
« Last Edit: January 11, 2017, 11:35:07 am by Torchickens »

(Image © Sanrio, Nintendo, HAL Laboratory)

✿ Hi! I'm Evie. I'm a transgender woman, but any pronouns are fine. She/her preferred. ✿ 🦋

Please note:

While I'm one of the staff who runs the site, Abwayax is the founder and manages the technical side of the site (specifically the server, but I can do forum/wiki stuff if you like, I suggest if you do to make a thread about it to gather a consensus). Still feel free to contact me about higher site issues though; I will forward them to Abwayax if needed. :)

Forgiveness is timeless, and moments we look back on humble the soul.

Thank you Nyapon for this lovely artwork. :3

Ganix

  • Distinguished Member
  • Offline Offline
  • Glitch Researcher
    • View Profile
Re: Idea for Pokémon Stadium Nintendo 64 arbitrary code execution
« Reply #1 on: January 11, 2017, 12:18:56 pm »
Oh wow, that's a pretty great idea!

I'll definitely be experimenting with the English versions of Pokemon Stadium and Pokemon Stadium 2 later today. :D

Quirky Flower Chicken ❤✿

  • Head Administrator
  • *****
  • Offline Offline
  • Gender: Female
  • Characters © Tsuburaya, Sanrio, Nintendo/TOSE
    • View Profile
Re: Idea for Pokémon Stadium Nintendo 64 arbitrary code execution
« Reply #2 on: January 11, 2017, 12:51:54 pm »
Oh wow, that's a pretty great idea!

I'll definitely be experimenting with the English versions of Pokemon Stadium and Pokemon Stadium 2 later today. :D

Cool. Thanks! ^^

(Image © Sanrio, Nintendo, HAL Laboratory)

✿ Hi! I'm Evie. I'm a transgender woman, but any pronouns are fine. She/her preferred. ✿ 🦋

Please note:

While I'm one of the staff who runs the site, Abwayax is the founder and manages the technical side of the site (specifically the server, but I can do forum/wiki stuff if you like, I suggest if you do to make a thread about it to gather a consensus). Still feel free to contact me about higher site issues though; I will forward them to Abwayax if needed. :)

Forgiveness is timeless, and moments we look back on humble the soul.

Thank you Nyapon for this lovely artwork. :3

TheZZAZZGlitch

  • Distinguished Member
  • *
  • Offline Offline
  • Gender: Male
  • Unknown opcode fc at 801a
    • View Profile
Re: Idea for Pokémon Stadium Nintendo 64 arbitrary code execution
« Reply #3 on: January 11, 2017, 01:02:40 pm »
Are there any relatively accurate N64 emulators with debugging functionality?
qÁF qÁF qÁF qÁF qÁF qÁF qÁF qÁF qÁF qÁF qÁF qÁF qÁF qÁF qÁF qÁF qÁF qÁF qÁF qÁF qÁF qÁF qÁF qÁF qÁF qÁF

Quirky Flower Chicken ❤✿

  • Head Administrator
  • *****
  • Offline Offline
  • Gender: Female
  • Characters © Tsuburaya, Sanrio, Nintendo/TOSE
    • View Profile
Re: Idea for Pokémon Stadium Nintendo 64 arbitrary code execution
« Reply #4 on: January 11, 2017, 01:17:29 pm »
Are there any relatively accurate N64 emulators with debugging functionality?

I did a search for you and found this (which is apparently based on the emulator Daedalus). Nemu64 apparently has a debugger as well, though the version listed there (and The Emulator Zone) is as old as 2003.

There is also a debugger project that from what I gather may be designed for real hardware, but I don't know what point in development it's at.

Hope that helps.

I remember that IIMarckus worked on analyzing Pokémon Stadium so he may likely be of help.

Edit: I tried running Pokémon Stadium on the first emulator and it said "Warning! Unhandled savegame type: FlashRam.", "Error! Exception :Writing to rom" and refused to load, so that may not work.

Edit 2: Project64 apparently has debugger support.
« Last Edit: January 11, 2017, 01:27:08 pm by Torchickens »

(Image © Sanrio, Nintendo, HAL Laboratory)

✿ Hi! I'm Evie. I'm a transgender woman, but any pronouns are fine. She/her preferred. ✿ 🦋

Please note:

While I'm one of the staff who runs the site, Abwayax is the founder and manages the technical side of the site (specifically the server, but I can do forum/wiki stuff if you like, I suggest if you do to make a thread about it to gather a consensus). Still feel free to contact me about higher site issues though; I will forward them to Abwayax if needed. :)

Forgiveness is timeless, and moments we look back on humble the soul.

Thank you Nyapon for this lovely artwork. :3

Ganix

  • Distinguished Member
  • Offline Offline
  • Glitch Researcher
    • View Profile
Re: Idea for Pokémon Stadium Nintendo 64 arbitrary code execution
« Reply #5 on: January 11, 2017, 01:39:03 pm »
There's also an unofficial WIP debugger for Project64. Not sure how usable/useful the debugger is though.

Edit: Setting Diglett's secondary type to 0x10 does indeed cause the same crash on the English version of Pokemon Stadium.
« Last Edit: January 11, 2017, 02:31:01 pm by Cryo »