al - Audio Library Functions gDP - DP GBI Macros gdSP - General GBI Macros gSP - SP GBI Macros gt - Turbo Microcode RDP gu - Graphics Utilities Math - Math Functions nuSys - NuSystem os - N64 Operating System sp - Sprite Library Functions uh - Host to Target IO 64DD - N64 Disk Drive
|
osReadHostSyntax#include <ultra64.h> void osReadHost(void *vAddr, s32 nbytes); void osWriteHost(void *vAddr, s32 nbytes); s32 osTestHost(void); * The osTestHost routine is not supported. * osAckRamromRead and osAckRamromWrite had been used to associate uhReadRamrom and uhWriteRamrom but are no longer necessary (ignored).
Explanation The osReadHost routine passes nbytes of data sent by the host function uhWriteGame to vAddr in RDRAM. The osWriteHost routine passes nbytes of data from vAddr in RDRAM to uhReadGame. For proper synchronization, the number of bytes transferred should be reliably matched for the function pairs osReadHost/uhWriteGame and osWriteHost/uhReadGame.
When both sides have correctly made the corresponding procedure call, the transfer will take place and the blocking side will proceed. Arguments
If data sent from a host program on an Intel machine is used by the 64 program, or conversely, if data sent by the 64 program is used by a host program on an Intel machine, caution should be used to avoid endian errors. Items to note
See Also osWriteHost uhOpenGame uhCloseGame uhReadGame uhWriteGame
|