diff system.h @ 2528:90a40be940f7

Implement read-only SC-3000 cassette support
author Michael Pavone <pavone@retrodev.com>
date Mon, 25 Nov 2024 22:26:45 -0800
parents cb62730d5c99
children f4a471730ba4
line wrap: on
line diff
--- a/system.h	Sat Oct 26 14:31:21 2024 -0700
+++ b/system.h	Mon Nov 25 22:26:45 2024 -0800
@@ -38,6 +38,13 @@
 	NUM_DEBUG_TYPES
 };
 
+enum {
+	CASSETTE_PLAY,
+	CASSETTE_RECORD,
+	CASSETTE_STOP,
+	CASSETTE_REWIND
+};
+
 typedef void (*system_fun)(system_header *);
 typedef uint16_t (*system_fun_r16)(system_header *);
 typedef void (*system_str_fun)(system_header *, char *);
@@ -82,6 +89,7 @@
 	system_str_fun          start_vgm_log;
 	system_fun              stop_vgm_log;
 	system_u8_fun           toggle_debug_view;
+	system_u8_fun           cassette_action;
 	rom_info          info;
 	arena             *arena;
 	char              *next_rom;