Overlay Dmem Initialization - Nintendo Ultra64 Programmer's Manual

Rsp
Table of Contents

Advertisement

Revision 1.0
notice the usage of the -S flag used when compiling newt.u in order to
access the external symbols of gspLine3D.u.
The -f argument passed to buildtask prevents concatenation of the
newt.dat section; this data section is redundant (any static data needed for
newt.u is planned for and included in gspLine3D.u).
The rsp2elf program is used to build an ELF object using buildtask's
output, this ELF object is what will be linked into the game application by
makerom.

Overlay DMEM Initialization

This code fragment shows the initialization of DMEM for this example.
###################################################
########### OVERLAY TABLE #########################
###################################################
#
# Program module overlay table. Offsets and sizes are
# filled in by the 'buildtask' utility, destinations are
# the responsibility of the ucode.
#
# OVERLAY_OFFSET:
#
#
# OVERLAY_SIZE:
#
# OVERLAY_DEST:
#
#
# The overlay table must be the first thing in DMEM.
# The 1st overlay must be the initial code.
#
.bound
0x80000000
OVERLAY_TAB_OFFSET:
#define OVERLAY_OFFSET
#define OVERLAY_SIZE
#define OVERLAY_DEST
#==========================================
#============= MAIN CODE OVERLAY ==========
offset from beginning of microcode in
RDRAM and in .o file (filled in by
buildtask).
length of overlay in bytes (filled in
by buildtask).
where in IMEM to put the overlay
(filled in by assembler).
0
4
6
Microcode Overlays
139

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents