osGlobals.3p
1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
.TH osGlobals 3P local "Silicon Graphics, Inc."
.upperok
.SH NAME
osTvType, osResetType, osMemSize, osAppNMIBuffer
\- Operating System Global variables
.SH SYNOPSIS
.nf
\f3
.Op c
#include <ultra64.h>
.sp .8v
s32 osTvType;
.sp .8v
s32 osResetType;
.sp .8v
s32 osMemSize;
.sp .8v
s32 osAppNMIBuffer[16];
.Op
\f1
.fi
.SH DESCRIPTION
The
.I osTvType
variable indicates whether the Nintendo64 system is configured for PAL
video timing (0), NTSC (1), or MPAL (2).
.P
The
.I osResetType
variable saves the cause of the system reboot.
It is either 0 indicating a cold reset,
or 1 indicating a NMI (nonmaskable interrupt).
The NMI occurs after the Reset switch is pressed.
.P
The
.I osMemSize
variable contains the installed main memory (DRAM) size in bytes.
.P
The
.I osAppNMIBuffer
is a 64 byte buffer that is cleared on a cold reset.
If the system reboots because of a 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.