summary refs log tree commit diff
path: root/src/6502.c
diff options
context:
space:
mode:
authorMaxwell Beck <max@rastertail.net>2025-07-20 20:23:03 -0500
committerMaxwell Beck <max@rastertail.net>2025-07-20 20:23:03 -0500
commitf2ac7b405786f6bc047dfda7b45c139d194ba032 (patch)
tree17fa521e31a32192c3afb01829b063a57fc945e2 /src/6502.c
parent3cefba9f8727001e0ec0fb6af1e6c3377fbfd34c (diff)
feat: Disk swapping HEAD main
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;