summaryrefslogtreecommitdiff
path: root/cpu_opcodes_ud.c
diff options
context:
space:
mode:
authorPeter Fors <peter.fors@mindkiller.com>2025-05-24 15:45:54 +0200
committerPeter Fors <peter.fors@mindkiller.com>2025-05-24 15:45:54 +0200
commita8e0c141b0184d629504b9f0ee8dbc4fefb90934 (patch)
treecff0f7e64ce58dc8f1e4ff4501743d9b94449c94 /cpu_opcodes_ud.c
parente28ad1546509de31b706f0fd300a906e5bc55199 (diff)
3011fps
Diffstat (limited to 'cpu_opcodes_ud.c')
-rw-r--r--cpu_opcodes_ud.c132
1 files changed, 66 insertions, 66 deletions
diff --git a/cpu_opcodes_ud.c b/cpu_opcodes_ud.c
index a679cae..44c1c8a 100644
--- a/cpu_opcodes_ud.c
+++ b/cpu_opcodes_ud.c
@@ -3,20 +3,20 @@
// NOP
-static void opcode_nop_imm(struct nes_state * restrict state) {
+static void opcode_nop_imm(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
memory_read(state, cpu->pc++); // T1: consume operand
}
-static void opcode_nop_zp(struct nes_state * restrict state) {
+static void opcode_nop_zp(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t addr = memory_read(state, cpu->pc++); // T1
memory_read_dummy(state, addr); // T2
}
-static void opcode_nop_abs(struct nes_state * restrict state) {
+static void opcode_nop_abs(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t lo = memory_read(state, cpu->pc++); // T1
@@ -26,7 +26,7 @@ static void opcode_nop_abs(struct nes_state * restrict state) {
memory_read_dummy(state, addr); // T3
}
-static void opcode_nop_zpx(struct nes_state * restrict state) {
+static void opcode_nop_zpx(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t base = memory_read(state, cpu->pc++); // T1: fetch operand
@@ -35,7 +35,7 @@ static void opcode_nop_zpx(struct nes_state * restrict state) {
memory_read_dummy(state, addr); // T3: final bus read to correct address
}
-static void opcode_nop_absx(struct nes_state * restrict state) {
+static void opcode_nop_absx(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t lo = memory_read(state, cpu->pc++); // T1
@@ -51,7 +51,7 @@ static void opcode_nop_absx(struct nes_state * restrict state) {
}
-static void opcode_nop_implied(struct nes_state * restrict state) {
+static void opcode_nop_implied(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
memory_read_dummy(state, cpu->pc); // T1
@@ -60,7 +60,7 @@ static void opcode_nop_implied(struct nes_state * restrict state) {
// LAX
-static void opcode_lax_imm(struct nes_state * restrict state) {
+static void opcode_lax_imm(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t value = memory_read(state, cpu->pc++);
@@ -69,7 +69,7 @@ static void opcode_lax_imm(struct nes_state * restrict state) {
update_zn(cpu, value);
}
-static void opcode_lax_indx(struct nes_state * restrict state) {
+static void opcode_lax_indx(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t zp = memory_read(state, cpu->pc++);
@@ -86,7 +86,7 @@ static void opcode_lax_indx(struct nes_state * restrict state) {
update_zn(cpu, value);
}
-static void opcode_lax_zp(struct nes_state * restrict state) {
+static void opcode_lax_zp(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t addr = memory_read(state, cpu->pc++);
@@ -97,7 +97,7 @@ static void opcode_lax_zp(struct nes_state * restrict state) {
update_zn(cpu, value);
}
-static void opcode_lax_zpy(struct nes_state * restrict state) {
+static void opcode_lax_zpy(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t base = memory_read(state, cpu->pc++);
@@ -110,7 +110,7 @@ static void opcode_lax_zpy(struct nes_state * restrict state) {
update_zn(cpu, value);
}
-static void opcode_lax_abs(struct nes_state * restrict state) {
+static void opcode_lax_abs(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t lo = memory_read(state, cpu->pc++);
@@ -123,7 +123,7 @@ static void opcode_lax_abs(struct nes_state * restrict state) {
update_zn(cpu, value);
}
-static void opcode_lax_absy(struct nes_state * restrict state) {
+static void opcode_lax_absy(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t lo = memory_read(state, cpu->pc++);
@@ -141,7 +141,7 @@ static void opcode_lax_absy(struct nes_state * restrict state) {
update_zn(cpu, value);
}
-static void opcode_lax_indy(struct nes_state * restrict state) {
+static void opcode_lax_indy(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t zp = memory_read(state, cpu->pc++);
@@ -163,7 +163,7 @@ static void opcode_lax_indy(struct nes_state * restrict state) {
// SAX
-static void opcode_sax_indx(struct nes_state * restrict state) {
+static void opcode_sax_indx(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t zp = memory_read(state, cpu->pc++); // T1
@@ -176,14 +176,14 @@ static void opcode_sax_indx(struct nes_state * restrict state) {
}
-static void opcode_sax_zp(struct nes_state * restrict state) {
+static void opcode_sax_zp(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t addr = memory_read(state, cpu->pc++);
memory_write(state, addr, cpu->a & cpu->x);
}
-static void opcode_sax_abs(struct nes_state * restrict state) {
+static void opcode_sax_abs(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t lo = memory_read(state, cpu->pc++);
@@ -193,7 +193,7 @@ static void opcode_sax_abs(struct nes_state * restrict state) {
memory_write(state, addr, cpu->a & cpu->x);
}
-static void opcode_sax_zpy(struct nes_state * restrict state) {
+static void opcode_sax_zpy(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t base = memory_read(state, cpu->pc++);
@@ -203,7 +203,7 @@ static void opcode_sax_zpy(struct nes_state * restrict state) {
memory_write(state, addr, cpu->a & cpu->x);
}
-static void opcode_sax_absy(struct nes_state * restrict state) {
+static void opcode_sax_absy(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t lo = memory_read(state, cpu->pc++);
@@ -215,7 +215,7 @@ static void opcode_sax_absy(struct nes_state * restrict state) {
memory_write(state, addr, cpu->a & cpu->x);
}
-static void opcode_sax_indy(struct nes_state * restrict state) {
+static void opcode_sax_indy(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t zp = memory_read(state, cpu->pc++); // T1
@@ -232,7 +232,7 @@ static void opcode_sax_indy(struct nes_state * restrict state) {
// DCP
-static void opcode_dcp_indx(struct nes_state * restrict state) {
+static void opcode_dcp_indx(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t zp = memory_read(state, cpu->pc++);
@@ -253,7 +253,7 @@ static void opcode_dcp_indx(struct nes_state * restrict state) {
update_zn(cpu, tmp & 0xff);
}
-static void opcode_dcp_zp(struct nes_state * restrict state) {
+static void opcode_dcp_zp(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t addr = memory_read(state, cpu->pc++);
@@ -267,7 +267,7 @@ static void opcode_dcp_zp(struct nes_state * restrict state) {
update_zn(cpu, tmp & 0xff);
}
-static void opcode_dcp_abs(struct nes_state * restrict state) {
+static void opcode_dcp_abs(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t lo = memory_read(state, cpu->pc++);
@@ -284,7 +284,7 @@ static void opcode_dcp_abs(struct nes_state * restrict state) {
update_zn(cpu, tmp & 0xff);
}
-static void opcode_dcp_indy(struct nes_state * restrict state) {
+static void opcode_dcp_indy(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t zp = memory_read(state, cpu->pc++);
@@ -307,7 +307,7 @@ static void opcode_dcp_indy(struct nes_state * restrict state) {
update_zn(cpu, tmp & 0xff);
}
-static void opcode_dcp_zpx(struct nes_state * restrict state) {
+static void opcode_dcp_zpx(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t base = memory_read(state, cpu->pc++);
@@ -324,7 +324,7 @@ static void opcode_dcp_zpx(struct nes_state * restrict state) {
update_zn(cpu, tmp & 0xff);
}
-static void opcode_dcp_absy(struct nes_state * restrict state) {
+static void opcode_dcp_absy(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t lo = memory_read(state, cpu->pc++);
@@ -344,7 +344,7 @@ static void opcode_dcp_absy(struct nes_state * restrict state) {
update_zn(cpu, tmp & 0xff);
}
-static void opcode_dcp_absx(struct nes_state * restrict state) {
+static void opcode_dcp_absx(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t lo = memory_read(state, cpu->pc++);
@@ -367,7 +367,7 @@ static void opcode_dcp_absx(struct nes_state * restrict state) {
// ISC
-static void opcode_isc_indx(struct nes_state * restrict state) {
+static void opcode_isc_indx(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t zp = memory_read(state, cpu->pc++);
@@ -386,7 +386,7 @@ static void opcode_isc_indx(struct nes_state * restrict state) {
sbc(cpu, value);
}
-static void opcode_isc_zp(struct nes_state * restrict state) {
+static void opcode_isc_zp(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t addr = memory_read(state, cpu->pc++);
@@ -398,7 +398,7 @@ static void opcode_isc_zp(struct nes_state * restrict state) {
sbc(cpu, value);
}
-static void opcode_isc_abs(struct nes_state * restrict state) {
+static void opcode_isc_abs(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t lo = memory_read(state, cpu->pc++);
@@ -413,7 +413,7 @@ static void opcode_isc_abs(struct nes_state * restrict state) {
sbc(cpu, value);
}
-static void opcode_isc_indy(struct nes_state * restrict state) {
+static void opcode_isc_indy(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t zp = memory_read(state, cpu->pc++);
@@ -434,7 +434,7 @@ static void opcode_isc_indy(struct nes_state * restrict state) {
sbc(cpu, value);
}
-static void opcode_isc_zpx(struct nes_state * restrict state) {
+static void opcode_isc_zpx(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t base = memory_read(state, cpu->pc++);
@@ -449,7 +449,7 @@ static void opcode_isc_zpx(struct nes_state * restrict state) {
sbc(cpu, value);
}
-static void opcode_isc_absy(struct nes_state * restrict state) {
+static void opcode_isc_absy(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t lo = memory_read(state, cpu->pc++);
@@ -467,7 +467,7 @@ static void opcode_isc_absy(struct nes_state * restrict state) {
sbc(cpu, value);
}
-static void opcode_isc_absx(struct nes_state * restrict state) {
+static void opcode_isc_absx(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t lo = memory_read(state, cpu->pc++);
@@ -488,7 +488,7 @@ static void opcode_isc_absx(struct nes_state * restrict state) {
// SLO
-static void opcode_slo_indx(struct nes_state * restrict state) {
+static void opcode_slo_indx(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t zp = memory_read(state, cpu->pc++);
@@ -510,7 +510,7 @@ static void opcode_slo_indx(struct nes_state * restrict state) {
update_zn(cpu, cpu->a);
}
-static void opcode_slo_zp(struct nes_state * restrict state) {
+static void opcode_slo_zp(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t addr = memory_read(state, cpu->pc++);
@@ -525,7 +525,7 @@ static void opcode_slo_zp(struct nes_state * restrict state) {
update_zn(cpu, cpu->a);
}
-static void opcode_slo_abs(struct nes_state * restrict state) {
+static void opcode_slo_abs(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t lo = memory_read(state, cpu->pc++);
@@ -543,7 +543,7 @@ static void opcode_slo_abs(struct nes_state * restrict state) {
update_zn(cpu, cpu->a);
}
-static void opcode_slo_indy(struct nes_state * restrict state) {
+static void opcode_slo_indy(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t zp = memory_read(state, cpu->pc++);
@@ -567,7 +567,7 @@ static void opcode_slo_indy(struct nes_state * restrict state) {
update_zn(cpu, cpu->a);
}
-static void opcode_slo_zpx(struct nes_state * restrict state) {
+static void opcode_slo_zpx(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t base = memory_read(state, cpu->pc++);
@@ -585,7 +585,7 @@ static void opcode_slo_zpx(struct nes_state * restrict state) {
update_zn(cpu, cpu->a);
}
-static void opcode_slo_absy(struct nes_state * restrict state) {
+static void opcode_slo_absy(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t lo = memory_read(state, cpu->pc++);
@@ -606,7 +606,7 @@ static void opcode_slo_absy(struct nes_state * restrict state) {
update_zn(cpu, cpu->a);
}
-static void opcode_slo_absx(struct nes_state * restrict state) {
+static void opcode_slo_absx(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t lo = memory_read(state, cpu->pc++);
@@ -630,7 +630,7 @@ static void opcode_slo_absx(struct nes_state * restrict state) {
// RLA
-static void opcode_rla_indx(struct nes_state * restrict state) {
+static void opcode_rla_indx(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t zp = memory_read(state, cpu->pc++);
@@ -653,7 +653,7 @@ static void opcode_rla_indx(struct nes_state * restrict state) {
update_zn(cpu, cpu->a);
}
-static void opcode_rla_zp(struct nes_state * restrict state) {
+static void opcode_rla_zp(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t addr = memory_read(state, cpu->pc++);
@@ -669,7 +669,7 @@ static void opcode_rla_zp(struct nes_state * restrict state) {
update_zn(cpu, cpu->a);
}
-static void opcode_rla_abs(struct nes_state * restrict state) {
+static void opcode_rla_abs(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t lo = memory_read(state, cpu->pc++);
@@ -688,7 +688,7 @@ static void opcode_rla_abs(struct nes_state * restrict state) {
update_zn(cpu, cpu->a);
}
-static void opcode_rla_indy(struct nes_state * restrict state) {
+static void opcode_rla_indy(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t zp = memory_read(state, cpu->pc++);
@@ -713,7 +713,7 @@ static void opcode_rla_indy(struct nes_state * restrict state) {
update_zn(cpu, cpu->a);
}
-static void opcode_rla_zpx(struct nes_state * restrict state) {
+static void opcode_rla_zpx(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t base = memory_read(state, cpu->pc++);
@@ -732,7 +732,7 @@ static void opcode_rla_zpx(struct nes_state * restrict state) {
update_zn(cpu, cpu->a);
}
-static void opcode_rla_absy(struct nes_state * restrict state) {
+static void opcode_rla_absy(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t lo = memory_read(state, cpu->pc++);
@@ -754,7 +754,7 @@ static void opcode_rla_absy(struct nes_state * restrict state) {
update_zn(cpu, cpu->a);
}
-static void opcode_rla_absx(struct nes_state * restrict state) {
+static void opcode_rla_absx(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t lo = memory_read(state, cpu->pc++);
@@ -779,7 +779,7 @@ static void opcode_rla_absx(struct nes_state * restrict state) {
// SRE
-static void opcode_sre_indx(struct nes_state * restrict state) {
+static void opcode_sre_indx(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t zp = memory_read(state, cpu->pc++);
@@ -801,7 +801,7 @@ static void opcode_sre_indx(struct nes_state * restrict state) {
update_zn(cpu, cpu->a);
}
-static void opcode_sre_zp(struct nes_state * restrict state) {
+static void opcode_sre_zp(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t addr = memory_read(state, cpu->pc++);
@@ -816,7 +816,7 @@ static void opcode_sre_zp(struct nes_state * restrict state) {
update_zn(cpu, cpu->a);
}
-static void opcode_sre_abs(struct nes_state * restrict state) {
+static void opcode_sre_abs(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t lo = memory_read(state, cpu->pc++);
@@ -834,7 +834,7 @@ static void opcode_sre_abs(struct nes_state * restrict state) {
update_zn(cpu, cpu->a);
}
-static void opcode_sre_indy(struct nes_state * restrict state) {
+static void opcode_sre_indy(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t zp = memory_read(state, cpu->pc++);
@@ -858,7 +858,7 @@ static void opcode_sre_indy(struct nes_state * restrict state) {
update_zn(cpu, cpu->a);
}
-static void opcode_sre_zpx(struct nes_state * restrict state) {
+static void opcode_sre_zpx(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t base = memory_read(state, cpu->pc++);
@@ -876,7 +876,7 @@ static void opcode_sre_zpx(struct nes_state * restrict state) {
update_zn(cpu, cpu->a);
}
-static void opcode_sre_absy(struct nes_state * restrict state) {
+static void opcode_sre_absy(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t lo = memory_read(state, cpu->pc++);
@@ -897,7 +897,7 @@ static void opcode_sre_absy(struct nes_state * restrict state) {
update_zn(cpu, cpu->a);
}
-static void opcode_sre_absx(struct nes_state * restrict state) {
+static void opcode_sre_absx(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t lo = memory_read(state, cpu->pc++);
@@ -921,7 +921,7 @@ static void opcode_sre_absx(struct nes_state * restrict state) {
// opcode_rra
-static void opcode_rra_indx(struct nes_state * restrict state) {
+static void opcode_rra_indx(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t zp = memory_read(state, cpu->pc++);
@@ -943,7 +943,7 @@ static void opcode_rra_indx(struct nes_state * restrict state) {
adc(cpu, value);
}
-static void opcode_rra_zp(struct nes_state * restrict state) {
+static void opcode_rra_zp(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t addr = memory_read(state, cpu->pc++);
@@ -958,7 +958,7 @@ static void opcode_rra_zp(struct nes_state * restrict state) {
adc(cpu, value);
}
-static void opcode_rra_abs(struct nes_state * restrict state) {
+static void opcode_rra_abs(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t lo = memory_read(state, cpu->pc++);
@@ -976,7 +976,7 @@ static void opcode_rra_abs(struct nes_state * restrict state) {
adc(cpu, value);
}
-static void opcode_rra_indy(struct nes_state * restrict state) {
+static void opcode_rra_indy(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t zp = memory_read(state, cpu->pc++);
@@ -1000,7 +1000,7 @@ static void opcode_rra_indy(struct nes_state * restrict state) {
adc(cpu, value);
}
-static void opcode_rra_zpx(struct nes_state * restrict state) {
+static void opcode_rra_zpx(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t base = memory_read(state, cpu->pc++);
@@ -1018,7 +1018,7 @@ static void opcode_rra_zpx(struct nes_state * restrict state) {
adc(cpu, value);
}
-static void opcode_rra_absy(struct nes_state * restrict state) {
+static void opcode_rra_absy(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t lo = memory_read(state, cpu->pc++);
@@ -1039,7 +1039,7 @@ static void opcode_rra_absy(struct nes_state * restrict state) {
adc(cpu, value);
}
-static void opcode_rra_absx(struct nes_state * restrict state) {
+static void opcode_rra_absx(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t lo = memory_read(state, cpu->pc++);
@@ -1063,7 +1063,7 @@ static void opcode_rra_absx(struct nes_state * restrict state) {
// ALR
-static void opcode_alr_imm(struct nes_state * restrict state) {
+static void opcode_alr_imm(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t value = memory_read(state, cpu->pc++);
cpu->a &= value;
@@ -1075,7 +1075,7 @@ static void opcode_alr_imm(struct nes_state * restrict state) {
// ANC
-static void opcode_anc_imm(struct nes_state * restrict state) {
+static void opcode_anc_imm(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t value = memory_read(state, cpu->pc++);
cpu->a &= value;
@@ -1086,7 +1086,7 @@ static void opcode_anc_imm(struct nes_state * restrict state) {
// ARR
-static void opcode_arr_imm(struct nes_state * restrict state) {
+static void opcode_arr_imm(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t value = memory_read(state, cpu->pc++);
@@ -1103,7 +1103,7 @@ static void opcode_arr_imm(struct nes_state * restrict state) {
// XAA
-static void opcode_xaa_imm(struct nes_state * restrict state) {
+static void opcode_xaa_imm(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t value = memory_read(state, cpu->pc++);
@@ -1114,7 +1114,7 @@ static void opcode_xaa_imm(struct nes_state * restrict state) {
// AXS
-static void opcode_axs_imm(struct nes_state * restrict state) {
+static void opcode_axs_imm(struct nes_state *state) {
struct cpu_state * restrict cpu = &state->cpu;
uint8_t value = memory_read(state, cpu->pc++);