88 lines
1.5 KiB
C
88 lines
1.5 KiB
C
/*
|
|
* $PSLibId: Run-time Library Release 4.7$
|
|
*/
|
|
|
|
/*
|
|
* gtereg_s.h
|
|
* Copyright(C) 1998 Sony Computer Entertainment Inc.
|
|
* All rights reserved.
|
|
*/
|
|
|
|
/*
|
|
* GTE data registers
|
|
*/
|
|
#define C2_VXY0 R0
|
|
#define C2_VZ0 R1
|
|
#define C2_VXY1 R2
|
|
#define C2_VZ1 R3
|
|
#define C2_VXY2 R4
|
|
#define C2_VZ2 R5
|
|
#define C2_RGB R6
|
|
#define C2_OTZ R7
|
|
|
|
#define C2_IR0 R8
|
|
#define C2_IR1 R9
|
|
#define C2_IR2 R10
|
|
#define C2_IR3 R11
|
|
#define C2_SXY0 R12
|
|
#define C2_SXY1 R13
|
|
#define C2_SXY2 R14
|
|
#define C2_SXYP R15
|
|
|
|
#define C2_SZ0 R16
|
|
#define C2_SZ1 R17
|
|
#define C2_SZ2 R18
|
|
#define C2_SZ3 R19
|
|
#define C2_RGB0 R20
|
|
#define C2_RGB1 R21
|
|
#define C2_RGB2 R22
|
|
|
|
|
|
#define C2_MAC0 R24
|
|
#define C2_MAC1 R25
|
|
#define C2_MAC2 R26
|
|
#define C2_MAC3 R27
|
|
#define C2_IRGB R28
|
|
#define C2_ORGB R29
|
|
#define C2_LZCS R30
|
|
#define C2_LZCR R31
|
|
|
|
/*
|
|
* GTE control Registers
|
|
*/
|
|
#define C2_R11R12 R0
|
|
#define C2_R13R21 R1
|
|
#define C2_R22R23 R2
|
|
#define C2_R31R32 R3
|
|
#define C2_R33 R4
|
|
#define C2_TRX R5
|
|
#define C2_TRY R6
|
|
#define C2_TRZ R7
|
|
|
|
#define C2_L11L12 R8
|
|
#define C2_L13L21 R9
|
|
#define C2_L22L23 R10
|
|
#define C2_L31L32 R11
|
|
#define C2_L33 R12
|
|
#define C2_RBK R13
|
|
#define C2_GBK R14
|
|
#define C2_BBK R15
|
|
|
|
#define C2_LR1LR2 R16
|
|
#define C2_LR3LG1 R17
|
|
#define C2_LG2LG3 R18
|
|
#define C2_LB1LB2 R19
|
|
#define C2_LB3 R20
|
|
#define C2_RFC R21
|
|
#define C2_GFC R22
|
|
#define C2_BFC R23
|
|
|
|
#define C2_OFX R24
|
|
#define C2_OFY R25
|
|
#define C2_H R26
|
|
#define C2_DQA R27
|
|
#define C2_DQB R28
|
|
#define C2_ZSF3 R29
|
|
#define C2_ZSF4 R30
|
|
#define C2_FLAG R31
|