List of Donkey Kong Land 2 glitches: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
(at least one, so changing to "more images")
m (→‎DK Coin Graphical Glitch: "a 8x6" -> "an 8x6")
Line 45: Line 45:
===DK Coin Graphical Glitch===
===DK Coin Graphical Glitch===
[[File:DKL2 Corrupted DK Coin Graphic.png|thumb|right|256px]]
[[File:DKL2 Corrupted DK Coin Graphic.png|thumb|right|256px]]
This glitch only occurs in the English version of the game. On the file select screen, when holding {{button|gb|padleft}} or {{button|gb|padright}} and any other button (excluding the D-Pad) to enter a cheat code, the top-left corner of one of the frames for the DK Coin graphic will be corrupted, depending on what button(s) are pressed. Up to ten presses can affect the DK Coin graphic, corrupting a 8x6 pixel region.
This glitch only occurs in the English version of the game. On the file select screen, when holding {{button|gb|padleft}} or {{button|gb|padright}} and any other button (excluding the D-Pad) to enter a cheat code, the top-left corner of one of the frames for the DK Coin graphic will be corrupted, depending on what button(s) are pressed. Up to ten presses can affect the DK Coin graphic, corrupting an 8x6 pixel region.


This occurs because when the graphics are loaded for the file select screen, the decompressed tiles for all frames are copied into a buffer, and then copied into VRAM. To store the last ten presses for the cheat codes, a 10-byte circular buffer is also used, and happens to share the same buffer as the DK coin graphics. Therefore, when cheat codes are entered, up to eleven bytes of the tile buffer can be overwritten (one for the number of button presses, and ten for the aforementioned circular buffer).
This occurs because when the graphics are loaded for the file select screen, the decompressed tiles for all frames are copied into a buffer, and then copied into VRAM. To store the last ten presses for the cheat codes, a 10-byte circular buffer is also used, and happens to share the same buffer as the DK coin graphics. Therefore, when cheat codes are entered, up to eleven bytes of the tile buffer can be overwritten (one for the number of button presses, and ten for the aforementioned circular buffer).