From 84d5538d476a30402511ca27d0e97c64a29241fe Mon Sep 17 00:00:00 2001 From: beeanyew Date: Thu, 18 Feb 2021 02:52:44 +0100 Subject: [PATCH] Update Gayle.c --- platforms/amiga/Gayle.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/platforms/amiga/Gayle.c b/platforms/amiga/Gayle.c index cf5729a..3ecf4d2 100644 --- a/platforms/amiga/Gayle.c +++ b/platforms/amiga/Gayle.c @@ -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; }