HSPIM HELP File: hspim.help Author: course (send problems to walton@das) Version: 1 The following assumes the CS 51 home directory is named ~lib51. ~lib51/bin/hspim Invoke the CS 51 Harvard SPIM interpreter. control-D Exit the interpreter. reinit Reinitialize HSPIM completely. load "file.asm" Load an assembly file into memory. run Run the current program (as defined by the `main' function). s Step the program for N instructions. defaults to 1. Type extra carriage returns to step in multiples of N instructions. c Continue program execution without stepping until the end of program or next breakpoint. Type extra carriage returns to continue repeatedly. p g Print the general registers. p s Print the global symbol table. p i Print instruction counters. p $N Print register N (e.g. $t0, $pc, $lo). p Print contents of memory at address . must be a global symbol or an integer. Type extra carriage returns to see subsequent words. br Set a breakpoint at address . must be a global symbol or an integer. del Delete all breakpoints at address . list List all breakpoints. . Process the assembly language statement. If it loads into the .text area, single step through the instructions loaded. dribble "file" Output every character seen on the screen to "file". The output is appended to the file. dribble Turn dribble off. ? Print the help message. ~lib51/bin/hspim -test file.out < file.in Run hspim with file.in as input and silently write the output in file.out as if it had been produced by dribble. However unlike dribble, file.out is truncated before output begins. ~lib51/bin/hspim -file file.asm Run hspim, and execute: load "file.asm" run silently. Can be combined with -test above.