mirror of
https://github.com/86Box/86Box.git
synced 2026-02-28 01:44:22 -07:00
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:
4
src/io.c
4
src/io.c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user