Skip to content

Commit 19a1193

Browse files
committed
fix quirk's number
1 parent a90fcab commit 19a1193

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

include/chip8.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ typedef struct CHIP8
144144
-6: Sprite Wrapping
145145
-7: Collision Enumeration
146146
-8: Collision with Bottom of Screen
147+
-9: Disable undefined VF after logical OR, AND, XOR (VF is set to 0 with this disabled)
147148
*/
148149
bool quirks[NUM_QUIRKS];
149150

src/libretro.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ static struct retro_variable variables[] =
138138
"jaxe_quirk_8_collision_bottom_of_screen",
139139
"Collision with Bottom of Screen; enabled|disabled",
140140
},
141+
{
142+
"jaxe_quirk_9_disable_undefined_VF_after_logical_OR_AND_XOR",
143+
"Disable undefined VF after logical OR, AND, XOR; enabled|disabled",
144+
},
141145
{
142146
"jaxe_cpu_requency",
143147
"CPU frequency; 1000|1500|2000|3000|5000|10000|25000|50000|100000|800|750|600|500|400|300",
@@ -253,7 +257,7 @@ static unsigned long get_cpu_freq_var(unsigned long def)
253257

254258
static void chip8_init_with_vars(void)
255259
{
256-
bool quirks[NUM_QUIRKS] = {1, 1, 1, 1, 1, 1, 1, 1, 1};
260+
bool quirks[NUM_QUIRKS] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
257261
unsigned long cpu_freq = CPU_FREQ_DEFAULT;
258262
unsigned long timer_freq = TIMER_FREQ_DEFAULT;
259263
unsigned long refresh_freq = REFRESH_FREQ_DEFAULT;

0 commit comments

Comments
 (0)