diff options
author | Michael Pavone <pavone@retrodev.com> | 2017-05-08 22:31:28 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2017-05-08 22:31:28 -0700 |
commit | 0d21fde651a775c1dd86e9ce916d0f63814d8176 (patch) | |
tree | fdd5c41b0da45cec0b764ac22972488d74cd9ec1 /genesis.c | |
parent | 20db9d95de69c67e745b7f84d61853b027ec409b (diff) |
Implemented slow rise time of IO pins set as inputs, but not driven by device. Fixes input in Decap Attack and possibly other games with buggy controller code
Diffstat (limited to 'genesis.c')
-rw-r--r-- | genesis.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -513,13 +513,13 @@ static m68k_context * io_write(uint32_t location, m68k_context * context, uint8_ io_data_write(gen->io.ports+2, value, context->current_cycle); break; case 0x4: - gen->io.ports[0].control = value; + io_control_write(gen->io.ports, value, context->current_cycle); break; case 0x5: - gen->io.ports[1].control = value; + io_control_write(gen->io.ports+1, value, context->current_cycle); break; case 0x6: - gen->io.ports[2].control = value; + io_control_write(gen->io.ports+2, value, context->current_cycle); break; case 0x7: gen->io.ports[0].serial_out = value; |