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
10extern int16 C4WFXVal;
11extern int16 C4WFYVal;
12extern int16 C4WFZVal;
13extern int16 C4WFX2Val;
14extern int16 C4WFY2Val;
15extern int16 C4WFDist;
16extern int16 C4WFScale;
17extern int16 C41FXVal;
18extern int16 C41FYVal;
19extern int16 C41FAngleRes;
20extern int16 C41FDist;
21extern int16 C41FDistVal;
22
23void C4TransfWireFrame (void);
24void C4TransfWireFrame2 (void);
25void C4CalcWireFrame (void);
26void C4Op0D (void);
27void C4Op15 (void);
28void C4Op1F (void);
29void S9xInitC4 (void);
30void S9xSetC4 (uint8, uint16);
31uint8 S9xGetC4 (uint16);
32uint8 * S9xGetBasePointerC4 (uint16);
33uint8 * S9xGetMemPointerC4 (uint16);
34
35static inline uint8 * C4GetMemPointer (uint32 Address)
36{
37 return (Memory.ROM + ((Address & 0xff0000) >> 1) + (Address & 0x7fff));
38}
39
40#endif
41