mpaud_regs.h
1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#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_ */