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
|
N64 Global VariablesSyntax#include <ultra64.h> s32 osTvType; s32 osResetType; s32 osMemSize; s32 osAppNMIBuffer[16]; What These Variables Hold The osTvType, osResetType, osMemSize, and osAppNMIBuffer variables (and buffer) are the N64 operating system global variables (and buffer). The osTvType variable indicates whether the N64 system is configured for PAL video timing (0), NTSC (1), or MPAL (2). The osResetType variable saves the cause of the system reboot. It is either 0 indicating a cold reset or 1 indicating a NMI (non-maskable interrupt). The NMI occurs after the Reset switch is pressed. The osMemSize variable contains the installed main memory (DRAM) size in bytes. The osAppNMIBuffer is a 64 byte buffer that is cleared on a cold reset. If the system reboots because of an NMI, this buffer is unchanged. The game can use this small buffer to hold data. If the game needs a larger buffer, that buffer needs to be located outside of the 1 Megabyte boot segment. See Also osTvType osResetType osMemSize osAppNMIBuffer
|