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
|
osGetMemSizeFormat#include <ultra64.h> u32 osGetMemSize(void); What This Function Does It confirms that the Memory Pak that comes with the N64 Disk Drive is inserted into the N64. The N64 Disk Drive comes with a Memory Pak that can be used by both disks and game Paks. The Memory Pak has a capacity of 4 megabytes (36 megabits). Disk-driven games don't need to use this function because IPL automatically checks to see if the Memory Pak is present in the N64. Game Paks, however, must use this function to ensure that Memory Pak is inserted before using the extended memory area. The function's return value is a byte. If the Memory Pak is inserted in the N64, the value of the return byte is 0x00800000. This function differs from the osMemSize global variable in that this function confirms the existence of the Memory Pak by actually writing data in part of the extended area. The function does destroy the part of extended memory it writes to, however, it does not destroy any part of the 4 megabytes that may have been written to previously. See Also osGlobals osMemSize
|