48 lines
955 B
C
48 lines
955 B
C
#ifndef _included_gte_
|
|
#define _included_gte_
|
|
|
|
//
|
|
// Store individual components of sv
|
|
//
|
|
|
|
#define gte_stsv_x( r0 ) __asm__ volatile ( \
|
|
"mfc2 $12, $9;" \
|
|
"sh $12, 0( %0 );" \
|
|
: \
|
|
: "r"( r0 ) \
|
|
: "$12", "memory" )
|
|
|
|
#define gte_stsv_y( r0 ) __asm__ volatile ( \
|
|
"mfc2 $12, $10;" \
|
|
"sh $12, 0( %0 );" \
|
|
: \
|
|
: "r"( r0 ) \
|
|
: "$12", "memory" )
|
|
|
|
#define gte_stsv_z( r0 ) __asm__ volatile ( \
|
|
"mfc2 $12, $11;" \
|
|
"sh $12, 0( %0 );" \
|
|
: \
|
|
: "r"( r0 ) \
|
|
: "$12", "memory" )
|
|
|
|
#define gte_stlvl_x( r0 ) __asm__ volatile ( \
|
|
"swc2 $9, 0( %0 );" \
|
|
: \
|
|
: "r"( r0 ) \
|
|
: "memory" )
|
|
|
|
#define gte_stlvl_y( r0 ) __asm__ volatile ( \
|
|
"swc2 $10, 0( %0 );" \
|
|
: \
|
|
: "r"( r0 ) \
|
|
: "memory" )
|
|
|
|
#define gte_stlvl_z( r0 ) __asm__ volatile ( \
|
|
"swc2 $11, 0( %0 );" \
|
|
: \
|
|
: "r"( r0 ) \
|
|
: "memory" )
|
|
|
|
#endif
|