diff options
author | 2013-03-05 11:01:22 +0000 | |
---|---|---|
committer | 2013-03-05 11:01:22 +0000 | |
commit | 0694bfd7171fa40e6a381f349f34872ea8e14d83 (patch) | |
tree | 5d4f54b3f540022e9af9d21abe17a1d0d470c6f1 /src/mess/machine/snescx4.h | |
parent | 6fbf9923e33cc987b76df7f1dc0ec58ff6f0af98 (diff) |
moved snes add-on chips emulation to src/mess/, at last.
Diffstat (limited to 'src/mess/machine/snescx4.h')
-rw-r--r-- | src/mess/machine/snescx4.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/mess/machine/snescx4.h b/src/mess/machine/snescx4.h new file mode 100644 index 00000000000..4ce750b6493 --- /dev/null +++ b/src/mess/machine/snescx4.h @@ -0,0 +1,24 @@ +/*************************************************************************** + + snescx4.h + + Code based on original work by zsKnight, anomie and Nach. + This implementation is based on C++ "cx4*.cpp" by byuu + (up to date with source v 0.49). + +***************************************************************************/ + +struct CX4 +{ + UINT8 ram[0x0c00]; + UINT8 reg[0x0100]; + UINT32 r0, r1, r2, r3, r4, r5, r6, r7, + r8, r9, r10, r11, r12, r13, r14, r15; + + INT16 C4WFXVal, C4WFYVal, C4WFZVal, C4WFX2Val, C4WFY2Val, C4WFDist, C4WFScale; + INT16 C41FXVal, C41FYVal, C41FAngleRes, C41FDist, C41FDistVal; + + double tanval; + double c4x, c4y, c4z; + double c4x2, c4y2, c4z2; +}; |