Home
last modified time | relevance | path

Searched refs:C4WFXVal (Results 1 – 25 of 28) sorted by relevance

12

/dports/games/libretro-snes9x/snes9x-73aa348/
H A Dc4.cpp13 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 Dc4emu.cpp423 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 Dc4.h10 extern int16 C4WFXVal;
/dports/emulators/snes9x-gtk/snes9x-1.54.1/
H A Dc4.cpp188 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 Dc4emu.cpp598 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 Dc4.h185 extern int16 C4WFXVal;
/dports/games/libretro-snes9x2005/snes9x2005-218be8e/source/
H A Dc4.c8 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 Dc4emu.c262 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 Dc4.h8 extern int16_t C4WFXVal;
/dports/emulators/mednafen/mednafen/src/snes/src/chip/cx4/
H A Dfunctions.cpp13 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 Doam.cpp94 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 Dopcodes.cpp170 C4WFXVal = readw(0x1f81); in op2d()
178 writew(0x1f80, C4WFXVal); in op2d()
H A Dserialization.cpp24 s.integer(C4WFXVal); in serialize()
/dports/games/libretro-beetle_bsnes/beetle-bsnes-libretro-b65ded5bde278c18af538c687db9b72c995b220a/mednafen/snes/src/chip/cx4/
H A Dfunctions.cpp13 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 Doam.cpp94 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 Dopcodes.cpp169 C4WFXVal = readw(0x1f81); in op2d()
177 writew(0x1f80, C4WFXVal); in op2d()
H A Dcx4_serialization.cpp24 s.integer(C4WFXVal); in serialize()
/dports/emulators/mess/mame-mame0226/src/mame/machine/
H A Dcx4fn.hxx24 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 Dcx4oam.hxx151 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 Dsnescx4.h20 int16_t C4WFXVal, C4WFYVal, C4WFZVal, C4WFX2Val, C4WFY2Val, C4WFDist, C4WFScale; member
H A Dcx4ops.hxx215 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 Dcx4fn.hxx24 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 Dcx4oam.hxx151 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 Dsnescx4.h20 int16_t C4WFXVal, C4WFYVal, C4WFZVal, C4WFX2Val, C4WFY2Val, C4WFDist, C4WFScale; member
/dports/games/libretro-snes9x2010/snes9x2010-714b1c8/src/
H A Dc4emu.c233 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 …]

12