04.04.2013 Views

Prism User's Guide - CSAIL People - MIT

Prism User's Guide - CSAIL People - MIT

Prism User's Guide - CSAIL People - MIT

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

T<br />

Chapter 4. Debugging a Program 71<br />

s print a string of characters terminated by a null byte<br />

f print a single-precision real number<br />

F print a double-precision real number<br />

i print the machine instruction<br />

The initial format is x. If you omit the format in your command, you get either<br />

x (if you haven't previously specified a format), or the previous format you specified.<br />

You can print the contents of multiple addresses by specifying a number after the<br />

slash (and before the format). For example,<br />

Ox1000/8X<br />

displays the contents of eight memory locations starting at address 0xl000. Contents<br />

are displayed as hexadecimal long words.<br />

4.6.2 Displaying the Contents of Registers<br />

You can examine the contents of registers in the same way that you examine the<br />

contents of memory. Specify a register by preceding its name with a dollar sign.<br />

For example,<br />

f o/<br />

prints the contents of the fO register.<br />

Register names for a SPARC are:<br />

$pc program counter<br />

$np next program counter<br />

$fsr floating status register<br />

$fq floating queue<br />

Swim window invalid mask<br />

$tbr trap base register<br />

Sg-S$g7 global registers<br />

$iO-$i7 input registers<br />

$10-$17 local registers<br />

$oO-So7 output registers<br />

Ssp synonym for $o6<br />

Sfp synonym for $i6<br />

Version 1.2, March 1993<br />

Copyright 0D 1993 Thinking Machines Corporation

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!