Banner
Views: 236,537,785
Time: 2013-05-24 11:08:49 AM
15 users online: Alcaro, DevEd, HyperMario, Koopster, KY2010, Lui37, Mister Kirby, mrdeppelman, Neidave, o PatPatPat, Pokeymeister80, o ShadowPhoenix, Shog, o Tahixham, o Zildjian - Guests: 28 - Bots: 11Users: 22,880 (1,275 active)
Latest: Carka Jack
Tip: ALWAYS test anything that you've made before submitting it to SMW Central.
Six Digit Coin counter adding and subtracting
Forum Index - SMW Hacking - General SMW Hacking Help - Six Digit Coin counter adding and subtracting
Pages: « 1 »
Do I use the $13CC RAM address directly or do I store to $0F34-$0F36 to add and subtract coins to the six digit coin counter?
If you're using version 1.5 (originally made by Ringodoggie, modified by Roy, HyperHacker, and me), then just using $13CC will work fine for adding. For subtracting, you can use !RAM_DecCoins, defined in the patch.
You need to set A in 16-bit with REP #$20.

Code
REP #$20 LDA $0F34 CLC ADC #$XXXX STA $0F34 SEP #$20 RTL


#$XXXX = Coins you want to add in hex.

To subtract, I'm not sure, but I think there's a RAM address to do that, just store the number of coins you want to subtract to that RAM address.

EDIT: Ninja'd.
Thanks.
Pages: « 1 »
Forum Index - SMW Hacking - General SMW Hacking Help - Six Digit Coin counter adding and subtracting

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2013 - SMW Central
Legal Information - Link To Us


Total queries: 29

Menu