- reorganized project directory structure
[z80comp2] / emu / src / emu.h
1 #ifndef EMU_H_
2 #define EMU_H_
3
4 #include <stdint.h>
5
6 int emu_init(void *romimg, int romsz);
7 void emu_cleanup(void);
8
9 void emu_reset(void);
10 void emu_step(void);
11
12 uint8_t emu_mem_read(uint16_t addr);
13 void emu_mem_write(uint16_t addr, uint8_t data);
14 uint8_t emu_io_read(uint16_t addr);
15 void emu_io_write(uint16_t addr, uint8_t data);
16
17 void emu_serin(int port, int c);
18 void emu_serout(int port, int c);       /* implemented by the backend */
19
20 #endif  /* EMU_H_ */