From 0fc6a09b1d373d63ab5d7d55f82c7ab4f793404f Mon Sep 17 00:00:00 2001 From: EkeEke Date: Fri, 14 Apr 2017 21:26:58 +0200 Subject: [PATCH] [Core/MD] fixed 68k read memory handler --- core/mem68k.c | 16 ++++++++++------ core/mem68k.h | 2 +- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/core/mem68k.c b/core/mem68k.c index cb60ed7..9099e49 100644 --- a/core/mem68k.c +++ b/core/mem68k.c @@ -3,7 +3,7 @@ * Main 68k bus handlers * * Copyright (C) 1998-2003 Charles Mac Donald (original code) - * Copyright (C) 2007-2016 Eke-Eke (Genesis Plus GX) + * Copyright (C) 2007-2017 Eke-Eke (Genesis Plus GX) * * Redistribution and use of this code or any derivative works are permitted * provided that the following conditions are met: @@ -413,11 +413,6 @@ unsigned int ctrl_io_read_byte(unsigned int address) return m68k_read_bus_8(address); } - case 0x10: /* MEMORY MODE */ - case 0x12: /* Z80 RESET */ - case 0x13: /* unknown */ - case 0x40: /* TMSS */ - case 0x44: /* RADICA */ case 0x50: /* SVP */ { if ((address & 0xFC) == 0x00) @@ -436,6 +431,15 @@ unsigned int ctrl_io_read_byte(unsigned int address) return m68k_read_bus_8(address); } + case 0x10: /* MEMORY MODE */ + case 0x12: /* Z80 RESET */ + case 0x13: /* unknown */ + case 0x40: /* TMSS */ + case 0x44: /* RADICA */ + { + return m68k_read_bus_8(address); + } + default: /* Invalid address */ { return m68k_lockup_r_8(address); diff --git a/core/mem68k.h b/core/mem68k.h index 1be1a16..4148ac9 100644 --- a/core/mem68k.h +++ b/core/mem68k.h @@ -3,7 +3,7 @@ * Main 68k bus handlers * * Copyright (C) 1998-2003 Charles Mac Donald (original code) - * Copyright (C) 2007-2016 Eke-Eke (Genesis Plus GX) + * Copyright (C) 2007-2017 Eke-Eke (Genesis Plus GX) * * Redistribution and use of this code or any derivative works are permitted * provided that the following conditions are met: