]> git.sesse.net Git - pistorm/blobdiff - a314/a314.h
Add Meson build files.
[pistorm] / a314 / a314.h
index 14fca5b1b875bdcc68dcd2548ad813a95a70dead..e05780d74205f82ce4a6e2734be71f6706ba03d4 100644 (file)
@@ -1,4 +1,7 @@
-// A314 emulation.
+/*
+ * Copyright 2020-2021 Niklas Ekström
+ * A314 emulation header
+ */
 
 #ifndef A314_H
 #define A314_H
@@ -9,12 +12,15 @@ extern "C" {
 
 #define A314_ENABLED 1
 
-// TODO: Base address should be obtained dynamically through Auto-Config.
-#define A314_COM_AREA_BASE 0xE90000
-#define A314_COM_AREA_SIZE (64*1024)
+extern unsigned int a314_base;
+extern int a314_base_configured;
+
+#define A314_COM_AREA_SIZE (64 * 1024)
 
 int a314_init();
+void a314_set_mem_base_size(unsigned int base, unsigned int size);
 void a314_process_events();
+void a314_set_config_file(char *filename);
 
 unsigned int a314_read_memory_8(unsigned int address);
 unsigned int a314_read_memory_16(unsigned int address);