N64® Functions Menu

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

Nintendo® Confidential





gSPSegment [macro]

Sets the segment register and the base address.

Syntax

#include <ultra64.h> /* gbi.h */
gSPSegment(Gfx *gdl, s32 seg, s32 base)
gsSPSegment(s32 seg, s32 base)

Arguments

  • gdl is the pointer to the graphics display list.

  • seg is the segment ID (0-15)

  • base is the base physical address

Explanation
Sets the base physical address of the segment. All pointers in the display list in the Reality Co-Processor (RCP) are segment addresses composed of a segment base and offset address. The actual addresses are calculated by the Reality Signal Processor (RSP) using the following translation:

Physical address = Base address [Segment ID] + Offset

For details, see Section 10.2, "Mixing CPU and SP Data," and Section 11.1.2, "Segmented Memory and the RSP Memory Map" in the N64 Online Programming Manual.

See Also
osVirtualToPhysical

Revision History
2/1/1999 Completely rewritten


Nintendo® Confidential

Warning: all information in this document is confidential and covered by a non-disclosure agreement. You are responsible for keeping this information confidential and protected. Nintendo will vigorously enforce this responsibility.


Copyright © 1998-1999
Nintendo of America Inc. All rights reserved
Nintendo and N64 are registered trademarks of Nintendo
Last updated March 1999