From b50ff8584cde279685b9ffe9a87b945b2456beb2 Mon Sep 17 00:00:00 2001 From: Squall Leonhart Date: Wed, 27 Jan 2021 06:45:20 +1100 Subject: [PATCH] add a missing break in half word reads Fixes illegal halfword and byte reads (Croket! 2 slowdown) --- src/gba/GBAinline.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gba/GBAinline.h b/src/gba/GBAinline.h index a715a8ef..23d7a3d6 100644 --- a/src/gba/GBAinline.h +++ b/src/gba/GBAinline.h @@ -289,6 +289,7 @@ static inline uint32_t CPUReadHalfWord(uint32_t address) // no need to swap this value = flashRead(address) * 0x0101; } + break; // default default: unreadable: