Function
nuPiReadRom
Syntax
void nuPiReadRom(u32 rom_addr, void* buf_ptr, u32 size)
Arguments
rom_addr transfer origin(from) ROM address
buf_ptr transfer destination(to) buffer pointer
size transfer size
Return Value
None
Description
Reads data from ROM
Uses the PI to DMA transfer data from Game Pak ROM into RDRAM. The transfer origin(from) ROM address "rom_addr" must be 2-byte aligned. The pointer to the transfer destination buffer "buf_ptr" must be 8-byte aligned.
While transferring a large amount of data using PI-DMA, it is possible that the necessary data cannot be transferred for audio playback during that period, causing noise in the audio. Therefore, when the amount of data to be transferred at one time is greater than 16,384 bytes, perform processing within the function so that it is divided into 16,384 byte units.
See Also
Revision History
2/1/99 Added description of divided transfer