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
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) (日本語/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: Gameboy Color freeze (or any other console): Visual effects  (Read 2122 times)

0 Members and 1 Guest are viewing this topic.

The G-Meister

  • Your bog-standard spotty British teenager
  • GCLF Member
  • Offline Offline
  • Gender: Male
  • That's no Pokémon, Ash.
    • View Profile
Gameboy Color freeze (or any other console): Visual effects
« on: November 11, 2015, 02:23:56 pm »
So with all this stuff in the glitches section about the game locking up, freezing, crashing or whatever you want to call it... do we actually know what happens when the game/a gameboy color freezes, in terms of the graphics? Are the lines specfic to each gameboy, each game, or do they vary dependant on the situation? I'm thinking about making a game sometime soon based around hacking the game itself, and I'd like some context as to what crashes look like on different platforms, so I've got something (moderately) relevant to base the art style on.

I took a quick look around the site and couldn't find anything, and whenever I type "crash" and "gameboy" into Google half the results are Crash Bandicoot games :/ Any takers?

Also I've got some research on the way (been preparing my Red save for a bit of glitching) so I'm not just sapping off of everyone's knowledge for nothing^-^

If no-one's done stuff like this (which I would assume they have) I'll gladly have a look.
Pixel Professor Oak is a spitting image of my physics teacher. Lab coat and all.

Proudly glitching on console, just pop me a message if you want me to do any research.

Yeniaul

  • Guest
Re: Gameboy Color freeze (or any other console): Visual effects
« Reply #1 on: August 20, 2016, 11:18:30 pm »
I know this is a necrobump, but relevant info included below.

If you crash with lines, beeping occurs, and the LCD messes up from time to time, it's launching crash data from the LCD. It has a length of 4-8 bytes, and 2 bytes are fired out whenever a beep occurs. Thedata repeats until power is turned off.
If the lines have a color laid out like the in-battle HUD, the battle script was executed. If not, the overworld/menu script was executed.

Princess Torchic Owl Lover ☽ ❤

  • Head Administrator
  • *****
  • Offline Offline
  • Gender: Female
  • Aspiring mother. 🦋 ✿
    • View Profile
Re: Gameboy Color freeze (or any other console): Visual effects
« Reply #2 on: November 03, 2018, 05:33:32 pm »
It usually varies based on the situation. I don't know much about the different situations though, but a common freeze in Pokémon Red/Blue/Yellow are the 'rst 38' freezes, in which the game tries to run an FF opcode. As the FF opcode is rst 38 (reset vector 38, which is like 'jp 0038'), and at 0038 there is another rst 38, it confuses the game and the memory is overwritten with a 00 39 pattern. This can affect the VRAM, and can cause bar freeze patterns like https://glitchcity.info/wiki/File:Bar_freeze.png

TheZZAZZGlitch discussed this somewhere else too.
« Last Edit: November 03, 2018, 05:35:50 pm by Evie Torchic the Glitch Scientist »

✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿
Here have some free flowers on every post ^^
✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿



(Images © Sanrio, Nintendo, Pokémon, HAL Laboratory)

✿ Hi, I'm Evie. Sex male, and spiritually doesn't believe 'male'/'female' needs to be defined; lives more stereotypically like a woman. Call me whichever pronouns you like. :)

Feel free to contact me here about anything regarding the site.

Forgiveness. I feel that the more people pray to our greatest source/God/mathematical equality for world peace, the more and more it manifests into reality (until our next spiritual death).

Thank you Nyapon for this lovely artwork. :3

ISSOtm

  • The French Lord of Laziness (and a huge The Legend Of Zelda fan)
  • Staff
  • *****
  • Offline Offline
  • Gender: Male
  • Pewter City (B)rocks !
    • View Profile
    • My Little Website
Re: Gameboy Color freeze (or any other console): Visual effects
« Reply #3 on: November 05, 2018, 02:36:38 am »
It usually varies based on the situation. I don't know much about the different situations though, but a common freeze in Pokémon Red/Blue/Yellow are the 'rst 38' freezes, in which the game tries to run an FF opcode. As the FF opcode is rst 38 (reset vector 38, which is like 'jp 0038'), and at 0038 there is another rst 38, it confuses the game and the memory is overwritten with a 00 39 pattern. This can affect the VRAM, and can cause bar freeze patterns like https://glitchcity.info/wiki/File:Bar_freeze.png

TheZZAZZGlitch discussed this somewhere else too.
`rst 38h` is `call $0038`, not `jp $0038`. Huge difference there, because this is what causes the memory corruption, since the returns address ($0039) keeps being pushed onto the stack.
Additionally, any interrupt handlers can trigger during the freeze, at least until their control registers get overwritten (and by coincidence, all of them will be disabled, except maybe the joypad, but I think this one ALSO causes a rst $38, so no good since it'd globally disable interrupts. kek) Therefore, the behavior of that crash is somewhat timing-dependent.
"THOU SHALL NOT PASS !!"  RIVAL's effect, Gandalf.

Proudly glitching Pokémon Red and Yellow on a Black & White GB, Pocket GB, GB Color, GBA SP and new 3DS.

My Twitter (beware, I'm French)
My YouTube (same warning)

Here is an online tool to build 8F setups : GBz80 to Items !

They see me layzin', they ha-tin'...
Heavy contributor of the global augmentation of entropy (my room's is too damn high !)

Princess Torchic Owl Lover ☽ ❤

  • Head Administrator
  • *****
  • Offline Offline
  • Gender: Female
  • Aspiring mother. 🦋 ✿
    • View Profile
Re: Gameboy Color freeze (or any other console): Visual effects
« Reply #4 on: November 05, 2018, 03:36:45 am »
It usually varies based on the situation. I don't know much about the different situations though, but a common freeze in Pokémon Red/Blue/Yellow are the 'rst 38' freezes, in which the game tries to run an FF opcode. As the FF opcode is rst 38 (reset vector 38, which is like 'jp 0038'), and at 0038 there is another rst 38, it confuses the game and the memory is overwritten with a 00 39 pattern. This can affect the VRAM, and can cause bar freeze patterns like https://glitchcity.info/wiki/File:Bar_freeze.png

TheZZAZZGlitch discussed this somewhere else too.
`rst 38h` is `call $0038`, not `jp $0038`. Huge difference there, because this is what causes the memory corruption, since the returns address ($0039) keeps being pushed onto the stack.
Additionally, any interrupt handlers can trigger during the freeze, at least until their control registers get overwritten (and by coincidence, all of them will be disabled, except maybe the joypad, but I think this one ALSO causes a rst $38, so no good since it'd globally disable interrupts. kek) Therefore, the behavior of that crash is somewhat timing-dependent.

Darn, that's what I get for not being as careful I should have been.

OK, thanks!  :)

✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿
Here have some free flowers on every post ^^
✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿



(Images © Sanrio, Nintendo, Pokémon, HAL Laboratory)

✿ Hi, I'm Evie. Sex male, and spiritually doesn't believe 'male'/'female' needs to be defined; lives more stereotypically like a woman. Call me whichever pronouns you like. :)

Feel free to contact me here about anything regarding the site.

Forgiveness. I feel that the more people pray to our greatest source/God/mathematical equality for world peace, the more and more it manifests into reality (until our next spiritual death).

Thank you Nyapon for this lovely artwork. :3