If you are still using the old URL (datacrystal.romhacking.net), please update your bookmarks! The old URL may stop working soon.
The current URL is datacrystal.tcrf.net.
The current URL is datacrystal.tcrf.net.
EarthBound/CGRAM DMA Transfer Style Table: Difference between revisions
Jump to navigation
Jump to search
(Create page) |
m (Xkeeper moved page EarthBound:CGRAM DMA Transfer Style Table to EarthBound/CGRAM DMA Transfer Style Table: normalize subpages and titles) |
(No difference)
|
Latest revision as of 02:41, 24 January 2024
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
- Length: 2 bytes (0x2)
- Offset within entry: 0x00
- Range of values: ??
Number of Bytes to Transfer
- Length: 2 bytes (0x2)
- Offset within entry: 0x02
- Range of values: 0x0001-0x0200
Number of bytes to DMA transfer to CGRAM. At most 512 (0x0200), the maximum size of SNES CGRAM.
Source Address
- Length: 2 bytes (0x2)
- Offset within entry: 0x04
- Range of values: 0x0000-0x1fff or 0x8000-0xffff
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
- Length: 2 bytes (0x2)
- Offset within entry: 0x06
- Range of values: 0x0000-0x00ff
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 |