summary refs log tree commit diff
path: root/src/6502.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/6502.c')
-rw-r--r--src/6502.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/6502.c b/src/6502.c
index 09f0a04..0ed0773 100644
--- a/src/6502.c
+++ b/src/6502.c
@@ -1,3 +1,5 @@
+#include <hardware/flash.h>
+
 #include "6502.h"
 
 #define STACK_PUSH(v) \
@@ -529,7 +531,7 @@ void cpu_reset(cpu_t *cpu) {
 	FETCH_PC(0xfffc);
 }
 
-uint8_t cpu_step(cpu_t *cpu) {
+uint8_t __not_in_flash_func(cpu_step)(cpu_t *cpu) {
 	uint8_t cycles = 0;
 	if (cpu->jammed) {
 		return cycles;