mpaud_regs.h 1.31 KB
#ifndef _mpaud_regs_h_
#define _mpaud_regs_h_ 1

	
 ############################################################################	
 #
 # Scalar Register Usage Conventions:
 #
 # Starting from $31 growing down, we allocate 'permanent' registers.
 # These should only be re-used carefully, possibly saved/restored.
 # (during development we might re-shuffle these so the more crucial
 # or stable ones remain higher)
 #
 # Register $0 is always 0, as per the MIPS R4000 spec.
 #
 # Starting from $1 growing up, we use 'temporary' registers which
 # are free to be used by procedures or small blocks of code. These
 # registers are not named (or they are .name'd and .unname'd in small
 # code blocks).
 #
 # Function parameters are passed and returned in $1, $2, $3, etc.
 #

.name	return,		$31	# MIPS R4000 convention for JAL op
.name   inp,            $30     # pointer to command list in DRAM
.name   gcount,         $29     # Size of command list
.name   dinp,           $28     # pointer to DMEM command list
.name   dlcount,        $27     # Size of command list in DMEM buffer

.name	inAddr,	        $26     # pointer to DRAM input buffer
.name   fCount,         $25     # Sub-frame counter
.name   outAddr,        $24     # pointer to DRAM output buffer
.name	zero,		$0

 # Vector registers

.name	vconst, $v31

#endif /* _mpaud_regs_h_ */