]> git.sesse.net Git - pistorm/commitdiff
Update Gayle.c
authorbeeanyew <beeanyew@gmail.com>
Thu, 18 Feb 2021 01:52:44 +0000 (02:52 +0100)
committerbeeanyew <beeanyew@gmail.com>
Thu, 18 Feb 2021 01:52:44 +0000 (02:52 +0100)
platforms/amiga/Gayle.c

index cf5729ad7406782c6db8a3ae6a1f1e4562a5fb80..3ecf4d2f9fe939832f78651827898886da6bc493 100644 (file)
@@ -25,8 +25,8 @@
 #include "gayle-ide/ide.h"
 #include "amiga-registers.h"
 
-//#define DEBUG(...)
-#define DEBUG printf
+#define DEBUG(...)
+//#define DEBUG printf
 
 uint8_t gary_cfg[8];
 
@@ -218,7 +218,7 @@ skip_idewrite8:;
     return;
   }
 
-  printf("Write Byte to Gayle Space 0x%06x (0x%06x)\n", address, value);
+  DEBUG("Write Byte to Gayle Space 0x%06x (0x%06x)\n", address, value);
 }
 
 void writeGayle(unsigned int address, unsigned int value) {
@@ -248,7 +248,7 @@ void writeGayle(unsigned int address, unsigned int value) {
     return;
   }
 
-  printf("Write Word to Gayle Space 0x%06x (0x%06x)\n", address, value);
+  DEBUG("Write Word to Gayle Space 0x%06x (0x%06x)\n", address, value);
 }
 
 void writeGayleL(unsigned int address, unsigned int value) {
@@ -268,7 +268,7 @@ void writeGayleL(unsigned int address, unsigned int value) {
     return;
   }
 
-  printf("Write Long to Gayle Space 0x%06x (0x%06x)\n", address, value);
+  DEBUG("Write Long to Gayle Space 0x%06x (0x%06x)\n", address, value);
 }
 
 uint8_t readGayleB(unsigned int address) {
@@ -380,7 +380,7 @@ skip_ideread8:;
     return get_rtc_byte(address, rtc_type);
   }
 
-  printf("Read Byte From Gayle Space 0x%06x\n", address);
+  DEBUG("Read Byte From Gayle Space 0x%06x\n", address);
   return 0xFF;
 }
 
@@ -411,7 +411,7 @@ uint16_t readGayle(unsigned int address) {
     return ((get_rtc_byte(address, rtc_type) << 8) | (get_rtc_byte(address + 1, rtc_type)));
   }
 
-  printf("Read Word From Gayle Space 0x%06x\n", address);
+  DEBUG("Read Word From Gayle Space 0x%06x\n", address);
   return 0x8000;
 }
 
@@ -428,6 +428,6 @@ uint32_t readGayleL(unsigned int address) {
     return ((get_rtc_byte(address, rtc_type) << 24) | (get_rtc_byte(address + 1, rtc_type) << 16) | (get_rtc_byte(address + 2, rtc_type) << 8) | (get_rtc_byte(address + 3, rtc_type)));
   }
 
-  printf("Read Long From Gayle Space 0x%06x\n", address);
+  DEBUG("Read Long From Gayle Space 0x%06x\n", address);
   return 0x8000;
 }