/dports/games/libretro-snes9x/snes9x-73aa348/ |
H A D | c4.cpp | 13 int16 C4WFXVal; variable 33 c4x = (double) C4WFXVal; in C4TransfWireFrame() 59 c4x = (double) C4WFXVal; in C4TransfWireFrame2() 79 C4WFXVal = (int16) (c4x * (double) C4WFScale / 0x100); in C4TransfWireFrame2() 85 C4WFXVal = C4WFX2Val - C4WFXVal; in C4CalcWireFrame() 88 if (abs(C4WFXVal) > abs(C4WFYVal)) in C4CalcWireFrame() 90 C4WFDist = abs(C4WFXVal) + 1; in C4CalcWireFrame() 92 if (C4WFXVal < 0) in C4CalcWireFrame() 93 C4WFXVal = -256; in C4CalcWireFrame() 95 C4WFXVal = 256; in C4CalcWireFrame() [all …]
|
H A D | c4emu.cpp | 423 C4WFXVal = (int16) X1; in C4DrawLine() 431 X1 = (C4WFXVal + 48) << 8; in C4DrawLine() 434 C4WFXVal = (int16) X2; in C4DrawLine() 438 X2 = (C4WFXVal + 48) << 8; in C4DrawLine() 442 C4WFXVal = (int16) (X1 >> 8); in C4DrawLine() 447 X2 = (int16) C4WFXVal; in C4DrawLine() 530 C4WFXVal = READ_WORD(ptr + 1); in C4TransformLines() 536 WRITE_WORD(ptr + 1, C4WFXVal + 0x80); in C4TransformLines() 559 WRITE_WORD(ptr2 + 0x602, C4WFXVal); in C4TransformLines() 992 C4WFXVal = READ_WORD(Memory.C4RAM + 0x1f81); in S9xSetC4() [all …]
|
H A D | c4.h | 10 extern int16 C4WFXVal;
|
/dports/emulators/snes9x-gtk/snes9x-1.54.1/ |
H A D | c4.cpp | 188 int16 C4WFXVal; variable 208 c4x = (double) C4WFXVal; in C4TransfWireFrame() 234 c4x = (double) C4WFXVal; in C4TransfWireFrame2() 254 C4WFXVal = (int16) (c4x * (double) C4WFScale / 0x100); in C4TransfWireFrame2() 260 C4WFXVal = C4WFX2Val - C4WFXVal; in C4CalcWireFrame() 263 if (abs(C4WFXVal) > abs(C4WFYVal)) in C4CalcWireFrame() 265 C4WFDist = abs(C4WFXVal) + 1; in C4CalcWireFrame() 267 if (C4WFXVal < 0) in C4CalcWireFrame() 268 C4WFXVal = -256; in C4CalcWireFrame() 270 C4WFXVal = 256; in C4CalcWireFrame() [all …]
|
H A D | c4emu.cpp | 598 C4WFXVal = (int16) X1; in C4DrawLine() 606 X1 = (C4WFXVal + 48) << 8; in C4DrawLine() 609 C4WFXVal = (int16) X2; in C4DrawLine() 613 X2 = (C4WFXVal + 48) << 8; in C4DrawLine() 617 C4WFXVal = (int16) (X1 >> 8); in C4DrawLine() 622 X2 = (int16) C4WFXVal; in C4DrawLine() 705 C4WFXVal = READ_WORD(ptr + 1); in C4TransformLines() 711 WRITE_WORD(ptr + 1, C4WFXVal + 0x80); in C4TransformLines() 734 WRITE_WORD(ptr2 + 0x602, C4WFXVal); in C4TransformLines() 1167 C4WFXVal = READ_WORD(Memory.C4RAM + 0x1f81); in S9xSetC4() [all …]
|
H A D | c4.h | 185 extern int16 C4WFXVal;
|
/dports/games/libretro-snes9x2005/snes9x2005-218be8e/source/ |
H A D | c4.c | 8 int16_t C4WFXVal; variable 136 c4x = C4WFXVal; in C4TransfWireFrame() 162 c4x = C4WFXVal; in C4TransfWireFrame2() 182 C4WFXVal = (int16_t)(((int32_t)c4x * C4WFScale) / 0x100); in C4TransfWireFrame2() 188 C4WFXVal = C4WFX2Val - C4WFXVal; in C4CalcWireFrame() 190 if (ABS(C4WFXVal) > ABS(C4WFYVal)) in C4CalcWireFrame() 192 C4WFDist = ABS(C4WFXVal) + 1; in C4CalcWireFrame() 194 if (C4WFXVal < 0) in C4CalcWireFrame() 195 C4WFXVal = -256; in C4CalcWireFrame() 197 C4WFXVal = 256; in C4CalcWireFrame() [all …]
|
H A D | c4emu.c | 262 C4WFXVal = (int16_t)X1; in C4DrawLine() 270 X1 = (C4WFXVal + 48) << 8; in C4DrawLine() 273 C4WFXVal = (int16_t)X2; in C4DrawLine() 277 X2 = (C4WFXVal + 48) << 8; in C4DrawLine() 281 C4WFXVal = (int16_t)(X1 >> 8); in C4DrawLine() 286 X2 = (int16_t)C4WFXVal; in C4DrawLine() 356 C4WFXVal = READ_WORD(ptr + 1); in C4TransformLines() 362 WRITE_WORD(ptr + 1, C4WFXVal + 0x80); in C4TransformLines() 383 WRITE_WORD(ptr2 + 0x602, C4WFXVal); in C4TransformLines() 653 C4WFXVal = READ_WORD(Memory.C4RAM + 0x1f81); in S9xSetC4() [all …]
|
H A D | c4.h | 8 extern int16_t C4WFXVal;
|
/dports/emulators/mednafen/mednafen/src/snes/src/chip/cx4/ |
H A D | functions.cpp | 13 double c4x = (double)C4WFXVal; in C4TransfWireFrame() 39 C4WFXVal = C4WFX2Val - C4WFXVal; in C4CalcWireFrame() 43 C4WFDist = abs(C4WFXVal) + 1; in C4CalcWireFrame() 45 C4WFXVal = (C4WFXVal < 0) ? -256 : 256; in C4CalcWireFrame() 48 C4WFXVal = (256 * (long)C4WFXVal) / abs(C4WFYVal); in C4CalcWireFrame() 56 double c4x = (double)C4WFXVal; in C4TransfWireFrame2() 111 C4WFXVal = (int16)X1; in C4DrawLine() 119 X1 = (C4WFXVal + 48) << 8; in C4DrawLine() 122 C4WFXVal = (int16)X2; in C4DrawLine() 126 X2 = (C4WFXVal + 48) << 8; in C4DrawLine() [all …]
|
H A D | oam.cpp | 94 C4WFXVal = readw(ptr + 1); in op00_05() 100 writew(ptr + 1, C4WFXVal + 0x80); in op00_05() 115 C4WFXVal = readw((read(ptr + 0) << 4) + 1); in op00_05() 121 writew(ptr2 + 0x602, C4WFXVal); in op00_05()
|
H A D | opcodes.cpp | 170 C4WFXVal = readw(0x1f81); in op2d() 178 writew(0x1f80, C4WFXVal); in op2d()
|
H A D | serialization.cpp | 24 s.integer(C4WFXVal); in serialize()
|
/dports/games/libretro-beetle_bsnes/beetle-bsnes-libretro-b65ded5bde278c18af538c687db9b72c995b220a/mednafen/snes/src/chip/cx4/ |
H A D | functions.cpp | 13 double c4x = (double)C4WFXVal; in C4TransfWireFrame() 39 C4WFXVal = C4WFX2Val - C4WFXVal; in C4CalcWireFrame() 43 C4WFDist = abs(C4WFXVal) + 1; in C4CalcWireFrame() 45 C4WFXVal = (C4WFXVal < 0) ? -256 : 256; in C4CalcWireFrame() 48 C4WFXVal = (256 * (long)C4WFXVal) / abs(C4WFYVal); in C4CalcWireFrame() 56 double c4x = (double)C4WFXVal; in C4TransfWireFrame2() 111 C4WFXVal = (int16)X1; in C4DrawLine() 119 X1 = (C4WFXVal + 48) << 8; in C4DrawLine() 122 C4WFXVal = (int16)X2; in C4DrawLine() 126 X2 = (C4WFXVal + 48) << 8; in C4DrawLine() [all …]
|
H A D | oam.cpp | 94 C4WFXVal = readw(ptr + 1); in op00_05() 100 writew(ptr + 1, C4WFXVal + 0x80); in op00_05() 115 C4WFXVal = readw((read(ptr + 0) << 4) + 1); in op00_05() 121 writew(ptr2 + 0x602, C4WFXVal); in op00_05()
|
H A D | opcodes.cpp | 169 C4WFXVal = readw(0x1f81); in op2d() 177 writew(0x1f80, C4WFXVal); in op2d()
|
H A D | cx4_serialization.cpp | 24 s.integer(C4WFXVal); in serialize()
|
/dports/emulators/mess/mame-mame0226/src/mame/machine/ |
H A D | cx4fn.hxx | 24 cx4.c4x = (double)cx4.C4WFXVal; in CX4_C4TransfWireFrame() 50 cx4.C4WFXVal = cx4.C4WFX2Val - cx4.C4WFXVal; in CX4_C4CalcWireFrame() 57 cx4.C4WFXVal = (cx4.C4WFXVal < 0) ? -256 : 256; in CX4_C4CalcWireFrame() 62 cx4.C4WFXVal = (256 * (long)cx4.C4WFXVal) / abs(cx4.C4WFYVal); in CX4_C4CalcWireFrame() 73 cx4.c4x = (double)cx4.C4WFXVal; in CX4_C4TransfWireFrame2() 155 cx4.C4WFXVal = (int16_t)X1; in CX4_C4DrawLine() 163 X1 = (cx4.C4WFXVal + 48) << 8; in CX4_C4DrawLine() 166 cx4.C4WFXVal = (int16_t)X2; in CX4_C4DrawLine() 170 X2 = (cx4.C4WFXVal + 48) << 8; in CX4_C4DrawLine() 174 cx4.C4WFXVal = (int16_t)(X1 >> 8); in CX4_C4DrawLine() [all …]
|
H A D | cx4oam.hxx | 151 cx4.C4WFXVal = CX4_readw(ptr + 1); in CX4_op00_05() 157 CX4_writew(machine, ptr + 1, cx4.C4WFXVal + 0x80); in CX4_op00_05() 172 cx4.C4WFXVal = CX4_readw((CX4_read(ptr + 0) << 4) + 1); in CX4_op00_05() 178 CX4_writew(machine, ptr2 + 0x602, cx4.C4WFXVal); in CX4_op00_05()
|
H A D | snescx4.h | 20 int16_t C4WFXVal, C4WFYVal, C4WFZVal, C4WFX2Val, C4WFY2Val, C4WFDist, C4WFScale; member
|
H A D | cx4ops.hxx | 215 cx4.C4WFXVal = CX4_readw(0x1f81); in CX4_op2d() 223 CX4_writew(machine, 0x1f80, cx4.C4WFXVal); in CX4_op2d()
|
/dports/emulators/mame/mame-mame0226/src/mame/machine/ |
H A D | cx4fn.hxx | 24 cx4.c4x = (double)cx4.C4WFXVal; in CX4_C4TransfWireFrame() 50 cx4.C4WFXVal = cx4.C4WFX2Val - cx4.C4WFXVal; in CX4_C4CalcWireFrame() 57 cx4.C4WFXVal = (cx4.C4WFXVal < 0) ? -256 : 256; in CX4_C4CalcWireFrame() 62 cx4.C4WFXVal = (256 * (long)cx4.C4WFXVal) / abs(cx4.C4WFYVal); in CX4_C4CalcWireFrame() 73 cx4.c4x = (double)cx4.C4WFXVal; in CX4_C4TransfWireFrame2() 155 cx4.C4WFXVal = (int16_t)X1; in CX4_C4DrawLine() 163 X1 = (cx4.C4WFXVal + 48) << 8; in CX4_C4DrawLine() 166 cx4.C4WFXVal = (int16_t)X2; in CX4_C4DrawLine() 170 X2 = (cx4.C4WFXVal + 48) << 8; in CX4_C4DrawLine() 174 cx4.C4WFXVal = (int16_t)(X1 >> 8); in CX4_C4DrawLine() [all …]
|
H A D | cx4oam.hxx | 151 cx4.C4WFXVal = CX4_readw(ptr + 1); in CX4_op00_05() 157 CX4_writew(machine, ptr + 1, cx4.C4WFXVal + 0x80); in CX4_op00_05() 172 cx4.C4WFXVal = CX4_readw((CX4_read(ptr + 0) << 4) + 1); in CX4_op00_05() 178 CX4_writew(machine, ptr2 + 0x602, cx4.C4WFXVal); in CX4_op00_05()
|
H A D | snescx4.h | 20 int16_t C4WFXVal, C4WFYVal, C4WFZVal, C4WFX2Val, C4WFY2Val, C4WFDist, C4WFScale; member
|
/dports/games/libretro-snes9x2010/snes9x2010-714b1c8/src/ |
H A D | c4emu.c | 233 static int16 C4WFXVal; variable 639 C4WFXVal = C4WFX2Val - C4WFXVal; in C4CalcWireFrame() 646 if (C4WFXVal < 0) in C4CalcWireFrame() 647 C4WFXVal = -256; in C4CalcWireFrame() 649 C4WFXVal = 256; in C4CalcWireFrame() 656 C4WFXVal = (int16) (256 * (double) C4WFXVal / abs(C4WFYVal)); in C4CalcWireFrame() 669 c4x = (double) C4WFXVal; in C4TransfWireFrame2() 697 C4WFXVal = (int16) X1; in C4DrawLine() 708 C4WFXVal = (int16) X2; in C4DrawLine() 721 X2 = (int16) C4WFXVal; in C4DrawLine() [all …]
|