diff --git a/a314/a314device/a314.device b/a314/a314device/a314.device new file mode 100644 index 0000000..9efa80d Binary files /dev/null and b/a314/a314device/a314.device differ diff --git a/a314/a314device/startup.c b/a314/a314device/startup.c index 79437c0..47ffb91 100644 --- a/a314/a314device/startup.c +++ b/a314/a314device/startup.c @@ -12,6 +12,9 @@ #include #include +#include +#include + #include "a314.h" #include "device.h" #include "protocol.h" diff --git a/platforms/amiga/amiga-platform.c b/platforms/amiga/amiga-platform.c index 819eda4..a7a8f34 100644 --- a/platforms/amiga/amiga-platform.c +++ b/platforms/amiga/amiga-platform.c @@ -116,17 +116,18 @@ inline int custom_read_amiga(struct emulator_config *cfg, unsigned int addr, uns } if (a314_emulation_enabled && addr >= a314_base && addr < a314_base + (64 * SIZE_KILO)) { + //printf("%s read from A314 @$%.8X\n", op_type_names[type], addr); switch (type) { case OP_TYPE_BYTE: - *val = a314_read_memory_8(addr); + *val = a314_read_memory_8(addr - a314_base); return 1; break; case OP_TYPE_WORD: - *val = a314_read_memory_16(addr); + *val = a314_read_memory_16(addr - a314_base); return 1; break; case OP_TYPE_LONGWORD: - *val = a314_read_memory_32(addr); + *val = a314_read_memory_32(addr - a314_base); return 1; break; default: @@ -202,9 +203,10 @@ inline int custom_write_amiga(struct emulator_config *cfg, unsigned int addr, un } if (a314_emulation_enabled && addr >= a314_base && addr < a314_base + (64 * SIZE_KILO)) { + //printf("%s write to A314 @$%.8X: %d\n", op_type_names[type], addr, val); switch (type) { case OP_TYPE_BYTE: - a314_write_memory_8(addr, val); + a314_write_memory_8(addr - a314_base, val); return 1; break; case OP_TYPE_WORD: