summaryrefslogtreecommitdiff
path: root/include/z80-if.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/z80-if.h')
-rw-r--r--include/z80-if.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/z80-if.h b/include/z80-if.h
index b02fe23..5153f37 100644
--- a/include/z80-if.h
+++ b/include/z80-if.h
@@ -2,14 +2,14 @@
#define ZST_ACQUIRED 0x01
#define ZST_RUNNING 0x02
-typedef enum {
+typedef enum {
RESET = 0x00,
RESET_AQRD = ZST_ACQUIRED,
RUNNING = ZST_RUNNING,
RUNNING_AQRD = ZST_RUNNING | ZST_ACQUIRED,
} zstate_t;
-typedef enum {
+typedef enum {
Reset,
Request,
Release,
@@ -26,6 +26,9 @@ void z80_setup_bus(void);
int z80_stat_reset(void);
//void z80_busreq(level_t level);
int z80_stat_halt(void);
+uint32_t z80_clock_get(void);
+int z80_clock_set(unsigned long freq);
+
void z80_write(uint32_t addr, uint8_t data);
uint8_t z80_read(uint32_t addr);