1 | /*****************************************************************************\ |
2 | Snes9x - Portable Super Nintendo Entertainment System (TM) emulator. |
3 | This file is licensed under the Snes9x License. |
4 | For further information, consult the LICENSE file in the root directory. |
5 | \*****************************************************************************/ |
6 | |
7 | #ifndef _C4_H_ |
8 | #define _C4_H_ |
9 | |
10 | extern int16 C4WFXVal; |
11 | extern int16 C4WFYVal; |
12 | extern int16 C4WFZVal; |
13 | extern int16 C4WFX2Val; |
14 | extern int16 C4WFY2Val; |
15 | extern int16 C4WFDist; |
16 | extern int16 C4WFScale; |
17 | extern int16 C41FXVal; |
18 | extern int16 C41FYVal; |
19 | extern int16 C41FAngleRes; |
20 | extern int16 C41FDist; |
21 | extern int16 C41FDistVal; |
22 | |
23 | void C4TransfWireFrame (void); |
24 | void C4TransfWireFrame2 (void); |
25 | void C4CalcWireFrame (void); |
26 | void C4Op0D (void); |
27 | void C4Op15 (void); |
28 | void C4Op1F (void); |
29 | void S9xInitC4 (void); |
30 | void S9xSetC4 (uint8, uint16); |
31 | uint8 S9xGetC4 (uint16); |
32 | uint8 * S9xGetBasePointerC4 (uint16); |
33 | uint8 * S9xGetMemPointerC4 (uint16); |
34 | |
35 | static inline uint8 * C4GetMemPointer (uint32 Address) |
36 | { |
37 | return (Memory.ROM + ((Address & 0xff0000) >> 1) + (Address & 0x7fff)); |
38 | } |
39 | |
40 | #endif |
41 | |