Main Menu
Main Page
New pages
Recent changes
Random page

Arbitrary code execution
Pokémon cloning
Pomeg glitch and Glitzer Popping
Tweaking and voiding
Glitches by generation
Other glitch categories

Disassembly projects
The Big HEX List
Interactive tools
Reference documents

Legendary Star Blob 2 (Hakuda) (日本語/Japanese)
Pokémon Speedruns wiki (English)
PRAMA Initiative (Français/French)
MissingNo. Glitch City (Italiano/Italian)
Become an affiliate!

Site source code

Search Wiki


Search Forums


Author Topic: BGB and invalid opcodes.  (Read 696 times)

0 Members and 1 Guest are viewing this topic.


  • GCLF Member
  • Offline Offline
  • Gender: Male
  • Oh snap, I destroyed my save file!
    • View Profile
BGB and invalid opcodes.
« on: November 22, 2018, 03:55:00 pm »
Whenever my bgb encounters an invalid opcode, it activates the debugger everytime I try to close it, as well as adding "invalid opcode" to the title of Debugger.
I thought bgb ignored unknown opcodes. How do you make bgb ignore unknown opcodes.
If I am necro-bumping, I am sorry.
4 4 scares me on a deep emotional level I can't describe.


  • 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: BGB and invalid opcodes.
« Reply #1 on: November 22, 2018, 04:29:10 pm »
BGB doesn't ignore invalid opcodes because they freeze the CPU. You can simulate BGB ignoring them manually, but there's no point.

In the latest release of BGB, you can turn off the debugger popping up constantly when one is hit by going to the Options (F11), Exceptions tab, and uncheck "Break on invalid opcodes". (Then click "OK" or "Apply".)
"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 !)


  • French living dexer
  • Distinguished Member
  • *
  • Offline Offline
  • Gender: Male
  • Head admin of the PRAMA Initiative
    • View Profile
    • PRAMA Initiative - French Pokémon glitch website
Re: BGB and invalid opcodes.
« Reply #2 on: November 23, 2018, 01:34:08 am »
It would require a very bad quality emulator to ignore invalid opcodes. Fortunately, official material coming from big companies, like the Virtual Console, will not be that ba... WAIT
« Last Edit: November 23, 2018, 01:34:30 am by Krys3000 »

Admin of the PRAMA Initiative, the main french Pokémon glitch website
“Anti-intellectualism has been a constant thread winding its way through our political and cultural life, nurtured by the false notion that democracy means that 'my ignorance is just as good as your knowledge.'” - Isaac Asimov


  • The Laziest Malware Enthusiast
  • Banned
  • *
  • Offline Offline
  • Gender: Male
  • who posted nudes in upstream
    • View Profile
    • (null)
Re: BGB and invalid opcodes.
« Reply #3 on: November 23, 2018, 10:10:46 am »
hahahahahahahahahahahahahahahahahaha... yeah... somehow, we're better than Nintendo at emulating THEIR OWN s**t.