if the mulator crashes then it's not handling the cpu exeptions correctly. if you divide by 0 in the gameboy rom then the emulator should just emulates a crashed cpu, not crash itself.
anyway, intresting seeing how the game reacted :P
There's a value in RAM which stores how many Pokemon you have in your party for things like Pokemon Centres; when adding Pokemon to the machine it executes a "subtract one, compare with 0, if not equal do it again" loop. When that value is zero the first subtraction circles over to 255, so it ends up drawing 256 Pokeballs (most of which end up being glitchy crap at the top of the screen due to overrunning the end of an array). It's the same bug that causes the split screen in Pac-Man.
@KorvMoij what I think is that he basically took the healing glitch in the world famous cactus (or whatever it is called) and brought it over to his pokemon red or blue version but I think your hypothesis is better. I also want to have that glitch in Pac-Man when I'm playing it
I have a vague memory of how pokemon code works (from reading up on the MissingNo glitch). If the called value is outside the range of what it's expecting (i.e. 1-6, it gets a value of 7, it rolls over back to 1) it does some funny stuff.
In this case, the value it gets is 0, so it calls the next memory addresses value and uses that, which tweaks the game out.
It may not be accurate, but it's something along those lines. Google up on the MissingNo glitch and give it a read. It's worth it.
@Monso Yeah, I'm guessing that the array access was done using pointer iteration instead of subscript characters (for example, if they wrote it in Assembly instead of C... or just wanted to optimize it) then they got plunged into a section of volatile memory holding other information and code, which started to execute and fry the game good. If you want to see some interesting effects with uC errors, google 'divide by zero on AVR' =P
The pokemon games have the most fun glitches to play around with, if you ask me. Also, Ash must be the second coming of Christ, since he can sure walk on water well!
what happens if you get spotted by a trainer?
RealDorsten 1 day ago
for(i=0;i!=pokemons;i++)
push(pokeball to heal)
If pokemons start
MetaBrainX 2 days ago
SIGSEGV :)
MetaBrainX 2 days ago
Seems legit.
TokioFSG 2 days ago
That music. /nostalgia
drksquee 2 days ago
Missingno from the east coast escaped and started attacking the island! Run!
DragonslayerProd 2 days ago
divide by zero error
kaonous 1 month ago 3
how many pokeballs do you have :)
busen2 1 month ago
So what happens if you fight a trainer?
ikepiggy 2 months ago
if the mulator crashes then it's not handling the cpu exeptions correctly. if you divide by 0 in the gameboy rom then the emulator should just emulates a crashed cpu, not crash itself.
anyway, intresting seeing how the game reacted :P
laharl2k 3 months ago
Thats not bugged at all
MrDa11 3 months ago
Imagine if the lavender town theme start playing backwards
iammeeksy 3 months ago
LOL!
TyranitarTube 3 months ago
I know the end of the world now.
JuniorNationFan 4 months ago
Pokéballs,
Pokéballs everywhere
TripleTribal 5 months ago
I like that there's a guy just chilling on the couch while a wall of code envelops him.
Manial12 6 months ago 2
Damn she had to go and heal EVERYONES pokemanz.
TealDaubs 7 months ago
lololol
MEOWalina 7 months ago
So let me get this straight, the whole world collapsed in on itself because one guy didn't own any Pokemon....good to know.
nukelex 10 months ago 30
you dun fucked the game.
DrewInWashington 1 year ago
There's a value in RAM which stores how many Pokemon you have in your party for things like Pokemon Centres; when adding Pokemon to the machine it executes a "subtract one, compare with 0, if not equal do it again" loop. When that value is zero the first subtraction circles over to 255, so it ends up drawing 256 Pokeballs (most of which end up being glitchy crap at the top of the screen due to overrunning the end of an array). It's the same bug that causes the split screen in Pac-Man.
KorvMoij 1 year ago 10
This has been flagged as spam show
@KorvMoij
Reddit is for fags
asfaqqq 1 year ago
@KorvMoij what I think is that he basically took the healing glitch in the world famous cactus (or whatever it is called) and brought it over to his pokemon red or blue version but I think your hypothesis is better. I also want to have that glitch in Pac-Man when I'm playing it
supersnivy1 8 months ago
someone just divided by zero.
Quadkillz0000 1 year ago 5
@Quadkillz0000 THere's an awesome video of someone dividing by zero on an AVR microcontroller... the thing basically explodes =D
Exallium 1 year ago
The explanation is obvious: they divide by the number of your pokemon.. :D
robholx 1 year ago
Awesome.
TheVivvav 1 year ago
I have a vague memory of how pokemon code works (from reading up on the MissingNo glitch). If the called value is outside the range of what it's expecting (i.e. 1-6, it gets a value of 7, it rolls over back to 1) it does some funny stuff.
In this case, the value it gets is 0, so it calls the next memory addresses value and uses that, which tweaks the game out.
It may not be accurate, but it's something along those lines. Google up on the MissingNo glitch and give it a read. It's worth it.
Monso 1 year ago 4
@Monso
Haha, that's not unique to pokemon code. It's called a buffer overflow and is one of the most common ways to exploit software.
Did your parents know you were learning how to hack??
ChuckPulsar 1 year ago
@ChuckPulsar I'm 23. Mom has bigger things to worry about than pokemon :P
Monso 1 year ago
@ChuckPulsar Actually, thinking back when I read that article, *I* didn't think I was learning how to hack :P
Monso 1 year ago
@Monso Yeah, I'm guessing that the array access was done using pointer iteration instead of subscript characters (for example, if they wrote it in Assembly instead of C... or just wanted to optimize it) then they got plunged into a section of volatile memory holding other information and code, which started to execute and fry the game good. If you want to see some interesting effects with uC errors, google 'divide by zero on AVR' =P
Exallium 1 year ago
why is your trainer not called jesus?! he can clearly walk on water!?
SkatingAMfan 1 year ago 57
@SkatingAMfan
lol
TyranitarTube 3 months ago
ohh man i gotta try that!!
pokemoncheatur 3 years ago
The pokemon games have the most fun glitches to play around with, if you ask me. Also, Ash must be the second coming of Christ, since he can sure walk on water well!
PCJedi6 3 years ago