diff options
author | Michael Pavone <pavone@retrodev.com> | 2017-01-04 20:43:22 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2017-01-04 20:43:22 -0800 |
commit | e96ca2a17dc298977d31768226090bc22b0baa5c (patch) | |
tree | 7a81bcdb53c31e95da82637ed313015c5f94cd16 /system.h | |
parent | 7efc7891c5d5c9bc1daf954510f90e79b6db5c75 (diff) |
Don't lock up CPU if performing a read with writes configured when in PBC mode. Allow access to VDP debug commands from Z80 debugger in PBC mode. Handle Mode 4 in VDP debug print functions
Diffstat (limited to 'system.h')
-rw-r--r-- | system.h | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,8 +1,6 @@ #ifndef SYSTEM_H_ #define SYSTEM_H_ #include <stdint.h> -#include "arena.h" -#include "romdb.h" typedef struct system_header system_header; typedef struct system_media system_media; @@ -21,12 +19,16 @@ typedef enum { typedef void (*system_fun)(system_header *); typedef uint16_t (*system_fun_r16)(system_header *); -typedef void (*start_system_fun)(system_header *, char *); +typedef void (*system_str_fun)(system_header *, char *); +typedef uint8_t (*system_str_fun_r8)(system_header *, char *); typedef void (*speed_system_fun)(system_header *, uint32_t); +#include "arena.h" +#include "romdb.h" + struct system_header { system_header *next_context; - start_system_fun start_context; + system_str_fun start_context; system_fun resume_context; system_fun load_save; system_fun persist_save; |