]> git.sesse.net Git - pistorm/blob - a314/a314.h
Add Meson build files.
[pistorm] / a314 / a314.h
1 /*
2  * Copyright 2020-2021 Niklas Ekström
3  * A314 emulation header
4  */
5
6 #ifndef A314_H
7 #define A314_H
8
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12
13 #define A314_ENABLED 1
14
15 extern unsigned int a314_base;
16 extern int a314_base_configured;
17
18 #define A314_COM_AREA_SIZE (64 * 1024)
19
20 int a314_init();
21 void a314_set_mem_base_size(unsigned int base, unsigned int size);
22 void a314_process_events();
23 void a314_set_config_file(char *filename);
24
25 unsigned int a314_read_memory_8(unsigned int address);
26 unsigned int a314_read_memory_16(unsigned int address);
27 unsigned int a314_read_memory_32(unsigned int address);
28
29 void a314_write_memory_8(unsigned int address, unsigned int value);
30 void a314_write_memory_16(unsigned int address, unsigned int value);
31 void a314_write_memory_32(unsigned int address, unsigned int value);
32
33 #ifdef __cplusplus
34 }
35 #endif
36
37 #endif /* A314_H */