Banner
Views: 932,214,875
Time:
15 users online:  1UPdudes, ASSATAKKU,  BTD6_maker, Daizo Dee Von, dougeff, Fiblizo, Geno7, Golden Yoshi, hendog30_, Infinity, jquery861, Julintendo, luma87, syogayaki, Vanessa - Guests: 58 - Bots: 322 Users: 52,038 (2,101 active)
Latest: riverrunner836
Tip: If you plan on making long levels, be sure to include multiple midway points.
Not logged in.
Help adding SA-1 support to this patch?
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - Help adding SA-1 support to this patch?
Pages: « 1 » Link
Edit: I figured it out, no need for help now.

I got this patch to work as I want but I don't know how to add support to SA-1?

I tried to use https://www.smwcentral.net/?p=viewthread&t=71953 as reference but i'm just not getting it.

Any help would be nice, thanks!

Code
ORG $0491D5
autoclean JSL NoSmall
NOP #2

freecode

NoSmall:
LDA #$01
STA $19
LDA $0DBC,X
STA $0DC2
RTL

ORG $00F5F5
db $EA,$EA,$EA

ORG $00F600
autoclean JSL CheckState

freecode

CheckState:
LDA $19
CMP #$02
BCS Big
JML $00F606
RTL

Big:
LDA #$01
STA $19
LDA #$04
STY $1DF9
JML $00F602
RTL 


Check this.

Basically, your code do not have that much to be done to be SA-1 compatible. Aside for adding the necessary SA-1 checking, you would have to convert the absolute-value addresses (RAM addresses between $0100 and $1FFF).

Aside that, I recommend you join your two freecode blocks into one alone.

--------------------



Dream team (feed them, please):






Pages: « 1 » Link
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - Help adding SA-1 support to this patch?

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

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


Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Super Mario Bros. X Community
  • ROMhacking.net
  • Mario Fan Games Galaxy
  • sm64romhacks