A314 updates

Replace a314.device with one suitable for PiStorm
Adjust address of writes/reads to/from the emulated device
Add missing includes to startup.c
This commit is contained in:
beeanyew
2021-05-17 21:43:03 +02:00
parent 6b48b5b3e0
commit d4674e7347
3 changed files with 9 additions and 4 deletions

BIN
a314/a314device/a314.device Normal file

Binary file not shown.

View File

@@ -12,6 +12,9 @@
#include <proto/exec.h>
#include <proto/expansion.h>
#include <exec/nodes.h>
#include <exec/interrupts.h>
#include "a314.h"
#include "device.h"
#include "protocol.h"

View File

@@ -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: