Views: 844,745,791
12 users online: Bensalot, codfish1002, Dark4ssass1n,  JamesD28,  KevinM, Nint,  patcdr, pixelninetales, PokerFace, Spulg,  Telinc1, UndeadBlackBird - Guests: 38 - Bots: 77 Users: 46,453 (2,759 active)
Latest: niandra
Tip: Linear levels aren't necessarily a bad thing. After all, most official Mario levels are fairly linear.Not logged in.
Posts by VideoGuy
VideoGuy's Profile - Posts by VideoGuy
Pages: « 1 2 3 »
Could somebody tell me what I'm doing wrong here?
LDA $C681
ADC #$01
STA $C681


In theory, this should add one to $C681 (which is free RAM according to the SNES9x debug) and then write that to the coin counter, and back to itself. But for some reason it writes 1 to the coin counter every frame (this is in LevelASM).

Also the last INC works fine (I just put that in to make sure the code was being run).
That was actually an extremely simplified version of my code, the actual thing is much different. But putting 7E in front fixed the problem perfectly, thanks!
Wait, so is this a modification of the original SMW Expansion or is this a new game? It seems a bit silly to modify a game that's already been released (quite a while ago too, at that).
Well the errors are caused by the fact that GetRand isn't anywhere in the sprite, and you should change JSR SubHorzPos to JSR SUB_HORZ_POS, since that's what you called it in your sprite.

Keep in mind the actual line numbers are often a few off from the line numbers the error log gives you. I don't know why, but that's something to keep in mind when you're debugging.
Pages: « 1 2 3 »
VideoGuy's Profile - Posts by VideoGuy

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

Copyright © 2005 - 2020 - SMW Central
Legal Information - Privacy Policy - Link To Us


Follow Us On

  • YouTube
  • Twitch
  • Twitter


  • Super Mario Bros. X Community
  • Mario Fan Games Galaxy