]> git.sesse.net Git - pistorm/blob - a314/a314.h
14fca5b1b875bdcc68dcd2548ad813a95a70dead
[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 // TODO: Base address should be obtained dynamically through Auto-Config.
13 #define A314_COM_AREA_BASE 0xE90000
14 #define A314_COM_AREA_SIZE (64*1024)
15
16 int a314_init();
17 void a314_process_events();
18
19 unsigned int a314_read_memory_8(unsigned int address);
20 unsigned int a314_read_memory_16(unsigned int address);
21 unsigned int a314_read_memory_32(unsigned int address);
22
23 void a314_write_memory_8(unsigned int address, unsigned int value);
24 void a314_write_memory_16(unsigned int address, unsigned int value);
25 void a314_write_memory_32(unsigned int address, unsigned int value);
26
27 #ifdef __cplusplus
28 }
29 #endif
30
31 #endif /* A314_H */