]> git.sesse.net Git - pistorm/blobdiff - platforms/amiga/amiga-registers.h
Fix a bunch of stuff, add working RICOH RTC emulation.
[pistorm] / platforms / amiga / amiga-registers.h
index 53a7b909c48a169bb031eeb21a987463dc97d1b4..3e19e6510bce76188674ef3aaa5665e8db334f88 100644 (file)
@@ -3,8 +3,19 @@ void set_hard_drive_image_file_amiga(uint8_t index, char *filename);
 int custom_read_amiga(struct emulator_config *cfg, unsigned int addr, unsigned int *val, unsigned char type);
 int custom_write_amiga(struct emulator_config *cfg, unsigned int addr, unsigned int val, unsigned char type);
 
+void put_rtc_byte(uint32_t address_, uint8_t value, uint8_t rtc_type);
+uint8_t get_rtc_byte(uint32_t address_, uint8_t rtc_type);
+
 #define GAYLEBASE 0xD80000
-#define GAYLESIZE 0x70000
+#define GAYLESIZE 0x070000
+#define GAYLEMASK 0xDF0000
 
 #define CLOCKBASE 0xDC0000
 #define CLOCKSIZE 0x010000
+#define CLOCKMASK 0x00FFFF
+
+enum rtc_types {
+    RTC_TYPE_MSM,
+    RTC_TYPE_RICOH,
+    RTC_TYPE_NONE,
+};
\ No newline at end of file