Banner
Views: 865,244,557
Time:
10 users online: Bro3256, callmeCMDR, daxster40, h.carrell, MagmaMouse, mio, Miscalc, slopcore,  Veck, Zandro - Guests: 29 - Bots: 64 Users: 47,920 (2,066 active)
Latest: UltimateMoyer
Tip: Don't use glitched graphics.Not logged in.
Details for Free up RAM $7F:8000
SMW Patches - Free up RAM $7F:8000 Link - Show random
File Name: Free up RAM $7F:8000
Added:
Version History: View
Authors: DiscoTheBat, Ersanio
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
Download: Download - 1.64 KiB
84 downloads
obersteiner86
But if i dont change it to my changes i get strange errors from asar @KevinM
Posted by: obersteiner86 - | Link
KevinM
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).
Posted by:  KevinM - | Link
obersteiner86
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
Posted by: obersteiner86 - | Link
KevinM
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!).
Posted by:  KevinM - | Link
HammerBrother
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).
Posted by: HammerBrother - | Link
AnasMario130
The more free RAM available, the better.
Posted by: AnasMario130 - | Link
HammerBrother
*$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.
Posted by: HammerBrother - | Link

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