Points of Required Attention™
Please chime in on a proposed restructuring of the ROM hacking sections.
Views: 88,534,797
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search 05-04-24 09:55 PM
Guest: Register | Login

0 users currently in SMW Hacking | 4 guests

Main - SMW Hacking - SMW HDMA Madness New thread | New reply


boingboingsplat
Posted on 02-21-09 06:53 AM Link | Quote | ID: 101550


Giant Koopa
[PREFSTRING:wonderful bounciness]
Level: 74

Posts: 790/1292
EXP: 3636228
Next: 17316

Since: 07-23-07
From: Michicola

Last post: 4850 days
Last view: 4813 days
I'm coding some HDMA without any kit, and I can't for the life of me figure out how to use $2121 and $2122 to change the backdrop color without affecting layer 2.



I've messed with CGADSUP in practically every conceivable bit combination that would make sense. I've tried turning off the subscreen color math blackhole89 told me about ($2130 bit 1) but to no avail. Will I have to resort to some sort of kit? This is driving me insane.

____________________
 

Smallhacker
Posted on 02-21-09 07:23 PM Link | Quote | ID: 101585


Panser
Swedish weirdo times eleven

Level: 42

Posts: 338/339
EXP: 494808
Next: 26554

Since: 02-19-07
From: Stockholm, Sweden

Last post: 5193 days
Last view: 5192 days
SMW uses the Fixed Color Data register for its background colors. Write the new colors to it.

Some info from some random page I found on Google:

2132  wb+++- COLDATA - Fixed Color Data
bgrccccc

b/g/r = Which color plane(s) to set the intensity for.
ccccc = Color intensity.

So basically, to set an orange you'd do something along the lines of:
LDA #$3f
STA $2132
LDA #$4f
STA $2132
LDA #$80
STA $2132


____________________
SMW Central

boingboingsplat
Posted on 02-21-09 11:48 PM (rev. 3 of 02-23-09 03:12 AM) Link | Quote | ID: 101600


Giant Koopa
[PREFSTRING:wonderful bounciness]
Level: 74

Posts: 792/1292
EXP: 3636228
Next: 17316

Since: 07-23-07
From: Michicola

Last post: 4850 days
Last view: 4813 days
I have that same document, I'll try that instead later. Seems a bit harder to work with, however.

Edit: Ok, so using that address works... almost. Now I'm having trouble actually getting it to apply on a per-scanline basis.

Edit2: Nevermind! Success! I actually managed to figure it out by looking at the tables of d4s' kit. They were just the HDMA data, so it wasn't that much of a stretch. Here's a pic:



____________________
 

Main - SMW Hacking - SMW HDMA Madness New thread | New reply

Acmlmboard 2.1+4δ (2023-01-15)
© 2005-2023 Acmlm, blackhole89, Xkeeper et al.

Page rendered in 0.020 seconds. (341KB of memory used)
MySQL - queries: 47, rows: 69/70, time: 0.015 seconds.