]> git.sesse.net Git - pistorm/blob - emulator.h
Fix config file parsing, add support for filename with spaces using quotes
[pistorm] / emulator.h
1 // SPDX-License-Identifier: MIT
2 /**
3  * pistorm
4  * emulator function declarations
5  */
6
7 #ifndef _EMULATOR_H
8 #define _EMULATOR_H
9
10 // see feature_set_macros(7)
11 #define _GNU_SOURCE
12
13 #include <stdint.h>
14
15 /*
16 void write16(uint32_t address,uint16_t data);
17 uint16_t read16(uint32_t address);
18 void write8(uint32_t address,uint16_t data);
19 uint16_t read8(uint32_t address);
20 */
21
22 void cpu_pulse_reset(void);
23 void m68ki_int_ack(uint8_t int_level);
24 int cpu_irq_ack(int level);
25 unsigned int  m68k_read_memory_8(unsigned int address);
26 unsigned int  m68k_read_memory_16(unsigned int address);
27 unsigned int  m68k_read_memory_32(unsigned int address);
28 void m68k_write_memory_8(unsigned int address, unsigned int value);
29 void m68k_write_memory_16(unsigned int address, unsigned int value);
30 void m68k_write_memory_32(unsigned int address, unsigned int value);
31
32 #endif /* _EMULATOR_H */