nuPiReadRom
void nuPiReadRom(u32 rom_addr, void* buf_ptr, u32 size)
Arguments
Return Value
None
Explanation
Reads data from ROM
Uses the PI to DMA transfer data from Game Pak ROM into RDRAM. The transfer origin ROM address "rom_addr" must be 2-byte aligned. The pointer to the transfer destination buffer "buf_ptr" must be 8-byte aligned.
When transferring a large data amount using PI-DMA, it is possible that the necessary data cannot be transferred by 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 the data are divided into 16,384-byte units.
See Also
nuPiInit
Revision History
2/1/1999 Added description of divided transfer.