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
Other glitch categories

References/Resources
Databases
Disassembly projects
The Big HEX List
Interactive tools
Reference documents
Terminology

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: Setting all ailments in-battle  (Read 514 times)

0 Members and 1 Guest are viewing this topic.

Parzival

  • The Laziest Malware Enthusiast
  • Banned
  • *
  • Offline Offline
  • Gender: Male
  • who posted nudes in upstream
    • View Profile
    • (null)
Setting all ailments in-battle
« on: April 26, 2017, 05:04:08 pm »
So, just to get acquainted with 8F, I made a small script to set the CPU Ailment byte to FF, because why not. I don't think anyone will be interested, but just in case, here you go.
Code: [Select]
ld a,$FF;
ld [$CFE9],a;
ret;
In items, that'd be
Code: [Select]
Lemonade x255
TM34 x233
TM07 x201
I screwed everything up with one of my earlier tries, which was
Code: [Select]
push af;
ld a,$FF;
ld [$CFE9],a;
pop af;
ret;
I landed at 03:0573, which is an invalid opcode. I don't know what happened before that, because I can't find a way to press a button for one frame while in the BGB debugger.

i'm also on keybase and bitchute but i don't have nifty buttons for those. Bitchute isn't ready yet, but will be eventually.

mood

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: Setting all ailments in-battle
« Reply #1 on: April 26, 2017, 05:28:16 pm »
Use the "Joypad" window.
"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 !)