Banner
Views: 843,193,699
Time:
24 users online: 7 up, BOB66, CalHal, Dan Drigues,  KevinM, Kusrry,  Lazy, le4che,  Linkdeadx2,  MarioFanGamer, Miets, Mirann, nathew, NewPointless, Rykon-V73, Ryrir, shane, SwampMage,  ThirdWall, underway, westslasher2,  xHF01x, yogui, zLukaasPvPz - Guests: 55 - Bots: 85 Users: 46,315 (2,880 active)
Latest: AmazingAlien
Tip: Don't replace the first two Map 16 FG Pages with ExGFX.Not logged in.
Converting uberASM code to SA-1. [Solved]
Forum Index - SMW Hacking - SMW Hacking Help - Converting uberASM code to SA-1. [Solved]
Pages: « 1 »
Hello. I found this neat thing in the uberASM code library:

Code
LDA #$78 : STA $0DA0	;Disable All controls.
LDA #$FF : STA $78		;Hide Mario.
RTS


However, when I tried to use this code on a level (using uberASM of course), it only got the invisibility part; I was able to run around as I please.

Could someone help me? Thanks. :3
Read first, then ask:
Originally posted by SA-1 readme
;===================================================;
; Programming ;
;===================================================;

Unlike the first version of the SA-1 PATCH, this one
is much more complex because of the various RAM remapping,
not counting the different ROM mapping.

In other words, in order to making anything SA-1
compatible, you will need to change:

(assuming that XX is in the $00-$3F or $80-$BF range
and YY equals either XX or $7E)

$YY:0000-$YY:00FF to $XX:3000-$XX:30FF.
$YY:0100-$YY:1FFF to $XX:6100-$XX:7FFF.

BE VERY CAREFUL WHEN HANDLING SPRITE ADDRESSES!
ARUJUS'S PATCH MOVE ALL OF THEM TO ANOTHER AREA.
Please check docs\sprite remap.txt for more details!

Note that if you're using 16-bit addressing,
you should to use $3000-$30FF and $6100-$7FFF for that.
8-bit addresses should work fine since DP is set to $3000.

$7E:C800-$7E:FFFF to $40:C800-$40:FFFF.
$7F:C800-$7E:FFFF to $41:C800-$41:FFFF.

$7F:9A7B-$7F:9C7A to $41:8800-$41:89FF.

$70:0000-$70:07FF to $41:C000-$41:C7FF.

Also, note that $70:0800-$70:27FF is now $41:A000-$41:BFFF if you
want more SRAM, but only that much. 16 KB should be enough
for SRAM unless you're working on something that
really wastes space.


--------------------
Okay, my layout looks ugly.
I did read it, but I just can't understand it. For instance, what do I even change? What's 16-bit addressing? I just want to change $0DA0 and $78 to SA-1 addresses. >.<
It means, you need to add $6000 to all addresses from $0100-$1FFF (like $0DA0 becomes $6DA0) and, if the address is entered in 16-bit (i.e. $xxxx), you add $3000 to addresses $0000-$00FF (i.e. $0078 becomes $3078 but because it's already entered as $78 it's redundant).

--------------------
Okay, my layout looks ugly.
I see. Thank you very much for simplifying it!
Pages: « 1 »
Forum Index - SMW Hacking - SMW Hacking Help - Converting uberASM code to SA-1. [Solved]

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


Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

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