Language…
10 users online: Dan2point5, fsvgm777, Gasterus155, JPhanto, kirsvantas, nonamelol1, reevebarusadar8, signature_steve, Sokobansolver, tOaO - Guests: 255 - Bots: 277
Users: 64,795 (2,377 active)
Latest user: mathew

Free up RAM $7F:8000

SMW Patches → Free up RAM $7F:8000

Submission Details

Name: Free up RAM $7F:8000
Authors: DiscoTheBat, Ersanio
Added:
Version History: View
Tool: Asar
Requires Free Space: Yes
Bug Fix: No
Featured: No
Description: This patch frees up 387 bytes of RAM at $7F:8000.

This fixes an bug that causes stall in SPC (when Addmusic is used) and additionally frees up more cycles by reducing the cancel out RAM routine creation a bit.

Update (Major Flare): Made the patch SA-1 hybrid and Asar compatible.

Note: if you use UberASM Tool, check the README file provided.
Tags: lorom sa-1 sprite routine
Comments: 9 (jump to comments)
Download 1.64 KiB | 285 downloads

Comments (9)

 KungFuFurby Link
This is out of AddmusicK's scope (the Addmusic referred to here pre-dates AddmusicK) because AddmusicK uses $7F:B000, not $7F:8000 for FreeRAM.
obersteiner86 Link
But if i dont change it to my changes i get strange errors from asar @KevinM
 Kevin Link
Originally posted by obersteiner86
stuff

Sublabel names are converted to ParentLabel_SubLabel, so in this case .OAM_0391 becomes Unroll_OAM_0391 (since Unroll is the parent).
obersteiner86 Link
not compatible with sa1-1.33 or retry or other patches and not with addmusicK 1.07. Hmm what is this:
Code
org $0086DA
autoclean jsl Unroll_OAM_0391
<----that should jump
Code
.OAM_0391	PHD <----that label dosent exit as are jump location			
PEA $0300|!addr


If i am not mistaken it should look like this:

Code
org $0086DA
autoclean jsl Unroll_OAM_0391

Code
Unroll_OAM_0391:
PHD
PEA $0300|!addr
 Kevin Link
Tested with: Lunar Magic 3.11, asar 1.71, SA-1 1.32, UberASM Tool 1.4, bsnes+ v04. Works correctly, so accepted. A kind of niche patch that could turn out useful for more advanced users who wish to have more free ram at their disposal.
During moderation I made the patch compatible with UberASM Tool and added the readme file (make sure to follow its instructions if you're using UberASM Tool, or the game will get stuck upon loading!).
HammerBrother Link
Originally posted by AnasMario130
The more free RAM available, the better.

Definitely, especially with HUGE tables (HDMA, a large array of flags for exploration-based hacks), and possibly a buffer to restore certain things (such as a full-screen pause menu that uses layers).
Anas Link
The more free RAM available, the better.
HammerBrother Link
*$7F8000-$7F8182, which is originally the unrolled loop for clearing out the sprite tiles.

Combined with free $7F0000 (frees up $7F0000-$7F3FFF)

and you have 387 + 16384 = 16771 ($4183) bytes of freeram.
Vivian Darkbloom From older version: Free up RAM $7F:8000 Link
Does this do anything for SA1 ROMs?