Welcome to Data Crystal's new home! Data Crystal is now part of the TCRF family (sort of).
The wiki has recently moved; please report any issues in Discord. Pardon the dust.

EarthBound/ASM/VRAM DMA Transfer Routines

From Data Crystal
< EarthBound
Revision as of 20:17, 14 June 2023 by Esorth (talk | contribs) (→‎$C085B7-$C08615: Transfer memory to VRAM in batches: Document batched transfer routine)
Jump to navigation Jump to search

This is a sub-page of EarthBound/ASM.

$C085B7-$C08615: Batched memory/VRAM transfer

Batched transfers between main memory (ROM/WRAM) and VRAM. Makes the transfers using multiple calls to $C08643 for batches of 0x1200 bytes, with a final transfer of the remainder up to 0x1201 bytes. Before each batch, spins on $7E0099, waiting for the value to become #$0000.

Inputs

  • a: Transfer style. Pointer into VRAM DMA Transfer Style Table
  • x: Transfer size (bytes)
  • y: VRAM address (word)
  • $0e..$10: Memory address long pointer

$C08616-$C0865A: Transfer memory to VRAM

$C0865B-$C0865E: Perform DMA transfer (JSL)

Trivial JSL wrapper around a call to $C0865F.

$C0865F-$C086DD: Perform DMA transfer (JSR)

So very stubbly.
This page is rather stubbly and could use some expansion.
Are you a bad enough dude to rescue this article?