Banner
Views: 235,870,755
Time: 2013-05-19 09:19:00 AM
7 users online: o 1UPdudes, HyperMario, Ludus, phenolatukas, piegoesmoo, Vitor Vilela, Yonowaaru - Guests: 32 - Bots: 13Users: 22,840 (1,288 active)
Latest: neagix
Tip: Verify your ROM is unedited by using ROMclean.
RAM Address $40
Forum Index - SMW Hacking - General SMW Hacking Help - ASM & Related Topics - RAM Address $40
Pages: « 1 »
Hello everyone, I would like to know how this address works, because I tried to use it and all it does is make layer 2 disappear...

Originally posted by RAM Map
$7E:0040 1 byte Hardware mirror CGADSUB settings. Format: abcdefgh.
a = 0 for adding color layer, 1 for subtracting color layer; b = half-color enable; c = backdrop enable; d = object enable; efgh = enable Layer 4, 3, 2, 1 (Layer 3 is only affected below the status bar). Mirror of SNES register $2131.


I know I have to convert the final value to hex. Sometimes I use binary.

Code
LDA.b #%11000010 ;\ Layer STA $40 ;/ settings.


If I use that code, layer 2 disappears, and it's not behind layer 1 or 3, it just disappears. Could someone explain me this? Thanks in advance.
You can use that code to create nice effects such "Translucid" level or even "Dark" level, you can check it out by looking at the CGDASUB at Lunar Magic's dialog "Change Properties in Header" and you can mess with this RAM to see if you can create effects.
Oh, alright, got it. But I'm not sure what this mean:

Originally posted by RAM Map
a = 0 for adding color layer, 1 for subtracting color layer
I think that's SNES colors math stuff that you can use to make transparency and layer disable/enable.
Alright, I could make a nice effect, thanks!
Pages: « 1 »
Forum Index - SMW Hacking - General SMW Hacking Help - ASM & Related Topics - RAM Address $40

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: 27

Menu