14 users online: carrot, Connnnair, crocodileman94, h.carrell, Hank_Sinatra, j.trujillo242, KGB_Gru,  patcdr,  Saphros,  Sayuri, sholmes, SMWEnthusiast, tekwarrior,  xHF01x - Guests: 94 - Bots: 206
Users: 66,276 (2,233 active)
Latest user: Remake

$0703 Palette Uploader

UberASM Repository → $0703 Palette Uploader

Submission Details

Name: $0703 Palette Uploader
Author: HuFlungDu
Type: Global
Includes GFX: No
Includes Hijack: No
Featured: No
Description: This uploads the RAM at $0703 to CGRAM every frame. The positive upshot of this is that you can use that RAM to update the palette at any point outside a blank, without using DMA (Which a lot of people don't understand). Make sure any time you edit $0703, you also edit $0905, otherwise fadeouts will not work correctly.
No credit necessary.
Tags: cgram lorom nmi sa-1
Comments: 7 (jump to comments)
0.0 (0 ratings)
No rating
Download 1.35 KiB | 307 downloads


Comments (7)

HammerBrother Link
 Erik Link
that's indeed the case but when I asked I got told to remoderate it anyway
trillian Link
p4plus2 informed me that this whole thing is actually unnecessary, due to the existence of $0680. So just writing to $0703 and then storing #$06 to $0680 would have the same effect.
if you want it to upload every frame, just adding a main: LDA #$06 : STA $0680 UberASM would do the trick.
 Telinc1 Link
I do doubt how many people could benefit from this code, simply due to the fact that you need some ASM knowledge to even know what it does. Still, I can see it being used by someone who hasn't quite gotten to the point of being able to upload a palette.

In spite of the ASM knowledge required to use the code, I still do think some aspects could have been made easier to use, especially the default free RAM requirement which is only mentioned in the actual ASM file. Ideally, the global code file shouldn't just be replaced, but avoiding the overhead of a routine call is sensible for NMI code. These aside, the code works fine and does what it's supposed to do.

Tested with: Lunar Magic 3.03, UberASM Tool 1.3 (Asar 1.71), bsnes v107
 Erik Link
Originally posted by toad64
how this patch could be useful?

disco ground bby
TheOrangeToad Link
how this patch could be useful?
 Erik Link
Remoderated patch.
Added SA-1 compatibility, and optimized code.