EarthBound/CGRAM DMA Transfer Style Table

From Data Crystal
< EarthBound
Revision as of 02:58, 1 July 2023 by Esorth (talk | contribs) (Create page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is a sub-page of EarthBound.

CGRAM DMA Transfer Style Table
Game EarthBound
Start Address 0x009198
End Address 0x0091AF
# of Entries 3
Entry Length 8 bytes (0x08)
Total Length 24 bytes (0x18)
Back to the ROM map

The CGRAM DMA Transfer Style Table stores miscellaneous parameters for DMA transfers to CGRAM.

Format

Unknown

Number of Bytes to Transfer

Number of bytes to DMA transfer to CGRAM. At most 512 (0x0200), the maximum size of SNES CGRAM.

Source Address

Source address (in the CPU address space) for the DMA transfer. EarthBound always sets the source bank to $00, therefore the source address can only be $000000-$001fff for WRAM or $008000-$00ffff for ROM.

Destination Address

Destination address (in CGRAM). CGRAM is addressed by word (color), not byte.

Table Contents

Offset Num Bytes Source Destination Description
00 256 $7e0200 $0000 Text/Window/Map (background) palettes
08 256 $7e0300 $0080 Sprite palettes
10 512 $7e0200 $0000 All palettes