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

## getvregs

Syntax

    getvregs thread

Explanation
It retrieves the vector register contents from the RCP co-processor. Specifically, it sends a message requesting the contents of the coprocessor vector registers from the target system by way of the dbgif tool and displays the register contents (in hex) on stdout. The thread argument is required, but meaningless. Choose your favorite integer.
Before executing this command, you must ensure that the dbgif program is running and that the METHOD environment variable is set. The target system ignores the specified value, so it does not need to be changed to the "correct" value of one, indicating that this is a request for the co-processor. The environment variable does need to be set so that a value can be supplied as part of the request packet. In csh, this is accomplished by specifying:

    setenv METHOD 1

If the coprocessor is running, the request will probably fail (as it should).
Bugs
In the event of a communications failure, the program will dump core. If this happens, you must remove the core file manually.
The thread argument should not be required.
See Also
dbgif

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
Nintendo of America Inc. All rights reserved
Nintendo and N64 are registered trademarks of Nintendo
Last updated March 1998