]>
Commit | Line | Data |
---|---|---|
0c5890bb L |
1 | |
2 | typedef enum {LOW, HIGH} level_t; | |
3 | ||
4 | void z80_setup_bus(void); | |
5 | void z80_write(uint32_t addr, uint8_t data); | |
6 | uint8_t z80_read(uint32_t addr); | |
7 | void z80_request_bus(void); | |
8 | void z80_release_bus(void); | |
9 | void z80_memset(uint32_t addr, uint8_t data, uint32_t length); | |
10 | void z80_reset(level_t level); | |
11 | void z80_reset_pulse(void); | |
534e1dfc L |
12 | int z80_stat_reset(void); |
13 | int z80_runstate(void); | |
72f58822 L |
14 | //void z80_busreq(level_t level); |
15 | void z80_write_block(const FLASH uint8_t *src, uint32_t dest, uint32_t length); | |
0c5890bb L |
16 | int z80_stat_halt(void); |
17 | ||
18 | ||
19 | typedef enum fifo_t {fifo_in, fifo_out, NUM_FIFOS} fifo_t; | |
20 | ||
21 | void z80_memfifo_init(const fifo_t f, uint32_t adr); | |
22 | int z80_memfifo_is_empty(const fifo_t f); | |
23 | int z80_memfifo_is_full(const fifo_t f); | |
24 | uint8_t z80_memfifo_getc(const fifo_t f); | |
25 | void z80_memfifo_putc(fifo_t f, uint8_t val); | |
26 | ||
27 | void z80_setup_msg_fifo(void); | |
28 | void z80_init_msg_fifo(uint32_t addr); | |
29 | int z80_msg_fifo_getc(void); |