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: Gameboy Color freeze (or any other console): Visual effects  (Read 2023 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.

Eve the Bird Mother ❤✿

  • Always believe in yourself first. ✿ Aspiring to be a mother. 🦋
  • Head Administrator
  • *****
  • Offline Offline
  • Gender: Female
  • Characters © Tsuburaya, Sanrio, Nintendo/TOSE
    • 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 »

(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

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 !)

Eve the Bird Mother ❤✿

  • Always believe in yourself first. ✿ Aspiring to be a mother. 🦋
  • Head Administrator
  • *****
  • Offline Offline
  • Gender: Female
  • Characters © Tsuburaya, Sanrio, Nintendo/TOSE
    • 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!  :)

(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