]> git.sesse.net Git - pistorm/blob - a314/a314.h
Merge remote-tracking branch 'niklasekstrom/autoconfig_a314' into wip-crap
[pistorm] / a314 / a314.h
1 // A314 emulation.
2
3 #ifndef A314_H
4 #define A314_H
5
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9
10 #define A314_ENABLED 1
11
12 extern unsigned int a314_base;
13 extern int a314_base_configured;
14
15 #define A314_COM_AREA_SIZE (64 * 1024)
16
17 int a314_init();
18 void a314_set_mem_base_size(unsigned int base, unsigned int size);
19 void a314_process_events();
20
21 unsigned int a314_read_memory_8(unsigned int address);
22 unsigned int a314_read_memory_16(unsigned int address);
23 unsigned int a314_read_memory_32(unsigned int address);
24
25 void a314_write_memory_8(unsigned int address, unsigned int value);
26 void a314_write_memory_16(unsigned int address, unsigned int value);
27 void a314_write_memory_32(unsigned int address, unsigned int value);
28
29 #ifdef __cplusplus
30 }
31 #endif
32
33 #endif /* A314_H */