Author Topic: Reprogramming a gameboy from within Pokemon Yellow  (Read 18146 times)

0 Members and 1 Guest are viewing this topic.

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Reprogramming a gameboy from within Pokemon Yellow
« on: December 09, 2012, 10:24:24 am »
[ Invalid YouTube link ]
One of my friends showed this to me. This has to be one of the coolest hacks I've ever seen. Give it a look.

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: Reprogramming a gameboy from within Pokemon Yellow
« Reply #1 on: December 09, 2012, 10:40:00 am »
Whoaaa ... can't just imagine how they actually found that xD

Offline mdr1

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 303
  • Rating: +21/-2
    • View Profile
Re: Reprogramming a gameboy from within Pokemon Yellow
« Reply #2 on: December 09, 2012, 10:41:19 am »
Weird, I don't understand how it works. With actionreplay ?



Offline ElementCoder

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 611
  • Rating: +42/-2
    • View Profile
Re: Reprogramming a gameboy from within Pokemon Yellow
« Reply #3 on: December 09, 2012, 10:41:34 am »
How on earth would you find out something like this O_O! Pretty awesome though.

Some people need a high five in the face... with a chair.
~EC

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Reprogramming a gameboy from within Pokemon Yellow
« Reply #4 on: December 09, 2012, 10:42:43 am »
No, he overflowed some things and made it so that he could execute his own code.
*Edit* Explanation here for those that didn't wish to search through the description link to find out how this was done: http://tasvideos.org/3767S.html
« Last Edit: December 09, 2012, 10:44:52 am by Art_of_camelot »

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: Reprogramming a gameboy from within Pokemon Yellow
« Reply #5 on: December 09, 2012, 10:44:35 am »
@mdr1 they corrupt the memory by quitting while the game is saving, so certain flags are set that have different purposes whether the user is playing or saving, I think. So the list of items is interpreted as hex commands (first byte → item's ID and 2nd byte → quantity).

Offline DrDnar

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 546
  • Rating: +97/-1
    • View Profile
Re: Reprogramming a gameboy from within Pokemon Yellow
« Reply #6 on: December 09, 2012, 10:44:52 am »
That's not as impressive as the ROM dump hack for the TI-81. I'd bet a large amount of money the exploit(s) were found by analyzing a ROM dump of the game and locating potential bugs, such as buffer overflow exploits. Moody had to do the ROM dump hack for the TI-81 without an actual ROM dump, so he had to make a lot of educated guesses.
"No tools will make a man a skilled workman, or master of defense, nor be of any use to him who has not learned how to handle them, and has never bestowed any attention upon them. . . . Yes, [] the tools which would teach men their own use would be beyond price."—Plato's The Republic, circa 380 BC

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Reprogramming a gameboy from within Pokemon Yellow
« Reply #7 on: December 09, 2012, 10:46:04 am »
True, but it's still pretty cool nonetheless. :D

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Reprogramming a gameboy from within Pokemon Yellow
« Reply #8 on: December 09, 2012, 07:01:28 pm »
Yeah, I saw something like that from a 1-minute speedrun of Pokémon Yellow, you can literally input Action Replay/Gameshark codes by glitching the game (rebooting the console at the right place while it saves), then swapping items and Pokémons around beyond the limit.
« Last Edit: December 09, 2012, 07:01:49 pm by Juju »

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Reprogramming a gameboy from within Pokemon Yellow
« Reply #9 on: December 09, 2012, 07:04:30 pm »
That's indeed amazing lol. I didn't realize anyone could exploit glitches or abuse exploits (even by TASing) so far that they could manage to execute their own code in a game console, from a game cartridge. But again we've been doing similar stuff for calcs for years.

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Reprogramming a gameboy from within Pokemon Yellow
« Reply #10 on: December 09, 2012, 07:09:02 pm »
I wonder if you can do a similar glitch with other games.

Spoiler For End spoiler:
>mfw the guy programmed the MLP theme with that glitch

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Reprogramming a gameboy from within Pokemon Yellow
« Reply #11 on: December 09, 2012, 07:10:52 pm »
It would be funny if a game allowed someone to reprogram stuff fast enough to sneak in a 8 bit rickroll theme in the video, rickrolling everyone who watched expecting a tool-assisted speedrun.
« Last Edit: December 09, 2012, 07:11:14 pm by DJ_O »

Offline Hexatron

  • LV3 Member (Next: 100)
  • ***
  • Posts: 76
  • Rating: +2/-1
    • View Profile
Re: Reprogramming a gameboy from within Pokemon Yellow
« Reply #12 on: November 23, 2013, 08:02:06 pm »
I remember seeing this a while back.
The problem is the cartridge doesn't have access to the GBA firmware, or does it?
Imagine a calculator emulator on GB :P

EDIT : Sorry for the bump  :(
« Last Edit: November 23, 2013, 08:03:28 pm by Hexatron »

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Reprogramming a gameboy from within Pokemon Yellow
« Reply #13 on: November 24, 2013, 04:09:29 am »
Imagine a calculator emulator on GB :P
The contrary is possible (see TI-Boy SE) but that emulation would not be convenient because of the lack of buttons on the GameBoy (you can argue that the contrary is not convenient either due to the smaller screen on the calc too btw, but it works).
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: Reprogramming a gameboy from within Pokemon Yellow
« Reply #14 on: November 24, 2013, 04:26:32 am »
GBA don't have a reprogrammable firmware. Just a ROM bios. But filling the memory with code then run it is possible.