More updates regarding the PC-98x1:

1.Fixed I/O step when using interleaving I/O.
2. Add more and fixes of the existing incomplete PC-98x1 core.
This commit is contained in:
TC1995
2024-02-13 01:29:00 +01:00
parent d4cf722d7d
commit 9910b6f3cd
15 changed files with 640 additions and 526 deletions

View File

@@ -121,7 +121,7 @@ io_sethandler_common(uint16_t base, int size,
io_t *p;
io_t *q = NULL;
for (int c = 0; c < size; c += step) {
for (int c = 0; c < (size * step); c += step) {
p = io_last[base + c];
q = (io_t *) malloc(sizeof(io_t));
memset(q, 0, sizeof(io_t));
@@ -161,7 +161,7 @@ io_removehandler_common(uint16_t base, int size,
io_t *p;
io_t *q;
for (int c = 0; c < size; c += step) {
for (int c = 0; c < (size * step); c += step) {
p = io[base + c];
if (!p)
continue;