ZZAZZ glitch: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
>Torchickens
No edit summary
>Torchickens
Line 23: Line 23:
Despite the cap, the larger the 'potential' payout the greater corruption is caused. For ZZAZZ glitch causing glitch Trainers the potential payout is way over 9999; the payout cap.
Despite the cap, the larger the 'potential' payout the greater corruption is caused. For ZZAZZ glitch causing glitch Trainers the potential payout is way over 9999; the payout cap.


The game works so that multiplication here is implemented as a consecutive addition (like 3*4 is 3+3+3+3) but a problem is that every time the game resets the payout back to 9999, the game moves the payout money pointer 3 bytes forward, so the game keeps writing hex:99 to memory addresses located past the winning money bytes.{{clarify}} The extent of corruption depends on how many additions the game used.
Multiplication in the winning money calculation is implemented as a consecutive addition (like 3*4 is 3+3+3+3), but a glitch occurs when the money caps at 9999. Every time the game resets the payout back to 9999, the game moves the payout money pointer 3 bytes forward, so the game keeps writing hex:99 to memory addresses located past the winning money bytes.{{clarify}} The extent of corruption depends on how many additions the game used.


(Thanks to the user TheZZAZZGlitch and Bbbbbbbbba for the cause from the forums)
(Thanks to the user TheZZAZZGlitch and Bbbbbbbbba for the cause from the forums)