Update Gayle.c

This commit is contained in:
beeanyew
2021-02-18 02:52:44 +01:00
parent 7f741a460b
commit 84d5538d47

View 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;
}