https://bulbapedia.bulbagarden.net/>However, since the glitch Trainers encountered have an invalid money value unlike normal Trainers, the arithmetic functions fail to behave as expected, corrupting a pointer and causing the byte 0x99 to be written to the first two out of every three bytes for each time the calculated award would exceed $9999 after the first. For the Trainers that trigger the ZZAZZ glitch, this happens over two hundred times, destroying many important game variables.