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

0 users currently in SMW Hacking | 2 guests | 1 bot

Main - SMW Hacking - BMF's HDMA Kit Help New thread | New reply


boingboingsplat
Posted on 07-23-09 10:59 PM Link | Quote | ID: 111033


Giant Koopa
[PREFSTRING:wonderful bounciness]
Level: 74

Posts: 945/1292
EXP: 3636670
Next: 16874

Since: 07-23-07
From: Michicola

Last post: 4852 days
Last view: 4814 days
Yeah, the only version I could find on SMWC, namely, this one, has absolutely no documentation. That being said, I have no idea how I am supposed to use it.

I have coded some HDMA effects without any sort of kit before, albeit a while ago. I am aware that I will need to code the effects myself.

____________________
 

era64
Posted on 07-24-09 10:54 AM Link | Quote | ID: 111070


Goomba
Level: 13

Posts: 4/25
EXP: 9188
Next: 1079

Since: 07-21-09

Last post: 5315 days
Last view: 5315 days
Really? I can find another HDMA kit, which is hard to install, but it has documentation: http://www.smwcentral.net/download.php?id=29&type=tools

xpCynic
Posted on 07-24-09 11:04 AM Link | Quote | ID: 111071


Panser
Smooth.
Level: 42

Posts: 312/344
EXP: 505859
Next: 15503

Since: 02-19-07

Last post: 4995 days
Last view: 4995 days
I'd imagine he wants to use BMF's kit because it's more flexible. Boing, you could always head over to Badnik and ask the man himself for help.

boingboingsplat
Posted on 07-24-09 06:41 PM Link | Quote | ID: 111097


Giant Koopa
[PREFSTRING:wonderful bounciness]
Level: 74

Posts: 946/1292
EXP: 3636670
Next: 16874

Since: 07-23-07
From: Michicola

Last post: 4852 days
Last view: 4814 days
Posted by era64
Really? I can find another HDMA kit, which is hard to install, but it has documentation: http://www.smwcentral.net/download.php?id=29&type=tools

I do not want to use d4s' kit because it doesn't allow me complete freedom over what my effects do and how I use them. There are advantages to being able to code all the effects from scratch yourself.

____________________
 

Sukasa
Posted on 07-25-09 03:48 AM (rev. 2 of 07-25-09 06:06 AM) Link | Quote | ID: 111129


Red Birdo
Level: 92

Posts: 1804/2112
EXP: 7695459
Next: 61478

Since: 02-19-07

Last post: 4458 days
Last view: 3229 days
There's a full documentation on the I2 archive, I'll get a link and edit this post with it

EDIT: http://acmlm.kafuka.org/archive2/thread.php?id=955

boingboingsplat
Posted on 07-25-09 09:28 PM Link | Quote | ID: 111171


Giant Koopa
[PREFSTRING:wonderful bounciness]
Level: 74

Posts: 948/1292
EXP: 3636670
Next: 16874

Since: 07-23-07
From: Michicola

Last post: 4852 days
Last view: 4814 days
I am still confused, mostly because the xkas HDMA kit I have has only one file, and I am at a loss of where I need to put my HDMA tables in the first place.

____________________
 

Sukasa
Posted on 07-25-09 09:36 PM Link | Quote | ID: 111174


Red Birdo
Level: 92

Posts: 1805/2112
EXP: 7695459
Next: 61478

Since: 02-19-07

Last post: 4458 days
Last view: 3229 days
Then throw out whatever kit you have and get the kit BMF posted in the linked thread. I don't know why anyone would fuck with it anyways, BMF's setup had things the way you needed them. Anyways, as far as the tables go, you put them in two places. One is the initial state of the table (if you have it) which goes anywhere in the same bank as it's hdmasub code block, along with your custom code for that effect (see the documention by BMF). The second location is anywhere in RAM you want to put the table (again, see bmf's posts for how to put it all together)

Also, I forgot BMF released two versions. You want This one

boingboingsplat
Posted on 07-25-09 11:19 PM Link | Quote | ID: 111191


Giant Koopa
[PREFSTRING:wonderful bounciness]
Level: 74

Posts: 949/1292
EXP: 3636670
Next: 16874

Since: 07-23-07
From: Michicola

Last post: 4852 days
Last view: 4814 days
I disassembled hdmasubv2.bin, and I just want to make sure I didn't do it horribly wrong.
	LDA $7FFF18				;DMA Channel 3
BNE label1
PHX
PHB
PHK
PLB
loop1:
LDX #$05
LDA hdmaParameters,x ;16-bit address of HDMA parameters
STA $7FFF18,x ;DMA Channel 3
DEX
BPL loop1
loop2:
LDX #$0C ;Size of HDMA table, minus 1
LDA hdmaTable,x ;16-bit address of HDMA table
STA $7FFF40,x ;24-bit RAM address HDMA table will be copied to
DEX
BPL loop2
PLB
PLX
RTL
label1:
REP #$20
LDA $1466
STA $7FFF4A
STA $7FFF41
STA $7FFF47
LSR A
STA $7FFF44
SEP #$20
RTL
db $00 ;Not sure why this is here, maybe I did this wrong
hdmaParameters:
db $04,$02,$0F,$40,$FF,$7F,$00,$00
hdmaTable:
db $37,$00,$00,$50,$00,$00,$38,$00,$00,$01,$00,$00,$00



____________________
 

Main - SMW Hacking - BMF's HDMA Kit Help New thread | New reply

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

Page rendered in 0.025 seconds. (341KB of memory used)
MySQL - queries: 72, rows: 100/100, time: 0.018 seconds.