diff options
author | Michael Pavone <pavone@retrodev.com> | 2015-06-25 09:02:42 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2015-06-25 09:02:42 -0700 |
commit | 4802e603569557fbc0e8086703d562ffa52236c7 (patch) | |
tree | dd115aa2c631ef1513c2d73e8b7963ae855622a2 | |
parent | 4dcb86c4023fef4e0c0d8e66ee1fb345d2537a47 (diff) |
Lame placeholder support for floating bus bits of IO hardware. Needs to be replaced with prefetch based values
-rw-r--r-- | blastem.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -643,6 +643,8 @@ uint8_t io_read(uint32_t location, m68k_context * context) } else { if (location == 0x1100) { value = z80_enabled ? !z80_get_busack(gen->z80, context->current_cycle) : !gen->z80->busack; + //TODO: actual pre-fetch emulation + value |= 0x4E; dprintf("Byte read of BUSREQ returned %d @ %d (reset: %d)\n", value, context->current_cycle, gen->z80->reset); } else if (location == 0x1200) { value = !gen->z80->reset; @@ -662,6 +664,8 @@ uint16_t io_read_w(uint32_t location, m68k_context * context) value = value | (value << 8); } else { value <<= 8; + //TODO: actual pre-fetch emulation + value |= 0x73; } return value; } |