100 Coin Star: Difference between revisions

Jump to navigation Jump to search
m
fixed wikitext typo
mNo edit summary
m (fixed wikitext typo)
(2 intermediate revisions by 2 users not shown)
Line 25: Line 25:
Because the coin count can exceed 999, using [[Infinite Coin Glitches|infinite coin glitches]], it can reach 32767. Due to signed integer overflow, if one more coin is collected, the coin counter would become -32768. Collecting coins will continue to increase this value. Note that the coin display would remain 32767, for it only updates when it is less than the coin count. If one collects 32868 more coins, or 65636 coins in total, the coin counter will equal 100, spawning another 100 Coin Star. Although this star will appear yellow, collecting it will not increase the game's star count from 120 to 121 or more. This is because each star is represented in memory by 1 bit, and when a star is collected, the game uses the bitwise OR operator to store this information.
Because the coin count can exceed 999, using [[Infinite Coin Glitches|infinite coin glitches]], it can reach 32767. Due to signed integer overflow, if one more coin is collected, the coin counter would become -32768. Collecting coins will continue to increase this value. Note that the coin display would remain 32767, for it only updates when it is less than the coin count. If one collects 32868 more coins, or 65636 coins in total, the coin counter will equal 100, spawning another 100 Coin Star. Although this star will appear yellow, collecting it will not increase the game's star count from 120 to 121 or more. This is because each star is represented in memory by 1 bit, and when a star is collected, the game uses the bitwise OR operator to store this information.


Since Mario's life count is stored as an 8-bit signed byte, when it is set to 999, the upper byte is discarded and the number that is stored is -25. Since the above code runs every frame, Mario's life count is constantly set to -25. This means collecting [[1-Up Mushroom||1-Ups]] will not change this value. Since Mario's coin count is not reset when he exits a level, losing a life will also not change the life count until another main course is entered. However, once Mario's coin count becomes negative, the life counter can be modified again.
Since Mario's life count is stored as an 8-bit signed byte, when it is set to 999, the upper byte is discarded and the number that is stored is -25. Since the above code runs every frame, Mario's life count is constantly set to -25. This means collecting [[1-Up Mushroom|1-Ups]] will not change this value. Since Mario's coin count is not reset when he exits a level, losing a life will also not change the life count until another main course is entered. However, once Mario's coin count becomes negative, the life counter can be modified again.


==Uses==
==Uses==
Line 34: Line 34:


In the A Button Challenge, the SDC is used:
In the A Button Challenge, the SDC is used:
* to get on the [[Bullet Bill Block]] in [[To the Top of the Fortress]] 0x
*to get on the [[Bullet Bill Block]] in [[To the Top of the Fortress]] 0x<ref>https://www.youtube.com/watch?v=iVbBjf5s2ag</ref>
* to get on the tower in a J-only alternative strat to collect [[To the Top of the Fortress]] 0x<ref>https://youtu.be/GMOxYVtJhOI</ref>
*along with a [[Crazy box]] and three [[Scuttlebugs]] to reach the mansion roof in [[Big Boo's Balcony]] 0x<ref>https://www.youtube.com/watch?v=CLksdecIacA</ref>
* to get to the mainland on the tiny island of [[Tiny-Huge Island]] 0x, saving 5 A presses<ref>https://youtu.be/eCCVpEK2YbQ</ref>
*to go to [[Hazy Maze Cave]] 0x<ref>https://youtu.be/uDtInisrqqM</ref>
* to get to the cogs 0x in [[Tick Tock Clock]]<ref>https://youtu.be/YBwenkLF_H4?t=256</ref>
*to get to the mainland on the tiny island of [[Tiny-Huge Island]] 0x, saving 5 A presses<ref>https://youtu.be/eCCVpEK2YbQ</ref>
* to go to [[Hazy Maze Cave]] 0x<ref>https://youtu.be/uDtInisrqqM</ref>
*to get to the highest walkway 0x in [[Stomp on the Thwomp]]<ref>https://www.youtube.com/watch?v=98EpPsaAF_k</ref>
among other A press saves.
among other A press saves.


===No Joystick Challenge===
===No Joystick Allowed===


The 100 coin star is currently used to reset Mario's ascent of steep slopes, which is useful near the top of the pyramid in [[Shifting Sand Land]] to collect the stars [[Inside the Ancient Pyramid]] and [[Pyramid Puzzle]].<ref>https://www.youtube.com/watch?v=I1XgaxgpEHA</ref>
The 100 coin star is currently used to reset Mario's ascent of steep slopes, which is useful near the top of the pyramid in [[Shifting Sand Land]] to collect the stars [[Inside the Ancient Pyramid]] and [[Pyramid Puzzle]].<ref>https://www.youtube.com/watch?v=I1XgaxgpEHA</ref>
577

edits

Navigation menu