summaryrefslogtreecommitdiff
path: root/avr/z80-if.h
diff options
context:
space:
mode:
authorLeo C2014-07-11 17:14:53 +0200
committerLeo C2014-07-11 17:14:53 +0200
commit64045ba0916623ab9e7c2f1eed837a2aae081e63 (patch)
tree2fd245ca15b7f32485e168d4598565efd98f00c4 /avr/z80-if.h
parente598b357f1cdfa103c2dc9985321f8c4e11d49ee (diff)
downloadz180-stamp-64045ba0916623ab9e7c2f1eed837a2aae081e63.zip
Refactor Tupfiles
Diffstat (limited to 'avr/z80-if.h')
-rw-r--r--avr/z80-if.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/avr/z80-if.h b/avr/z80-if.h
index 1068225..1e7d675 100644
--- a/avr/z80-if.h
+++ b/avr/z80-if.h
@@ -1,6 +1,13 @@
typedef enum {LOW, HIGH} level_t;
+typedef union {
+ uint32_t l;
+ uint16_t w[2];
+ uint8_t b[4];
+} addr_t;
+
+
void z80_setup_bus(void);
void z80_write(uint32_t addr, uint8_t data);
uint8_t z80_read(uint32_t addr);