From 29fcb9d7b965feb1581d14c8798ba43d721e2136 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Thu, 20 Feb 2014 23:28:35 +0100 Subject: [PATCH] Freeboy/Gb_Apu: fixed require() statement Classical off-by-one error. --- plugins/papu/gb_apu/Gb_Apu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/papu/gb_apu/Gb_Apu.cpp b/plugins/papu/gb_apu/Gb_Apu.cpp index 49a909102..6039b043b 100644 --- a/plugins/papu/gb_apu/Gb_Apu.cpp +++ b/plugins/papu/gb_apu/Gb_Apu.cpp @@ -239,7 +239,7 @@ void Gb_Apu::write_register( gb_time_t time, gb_addr_t addr, int data ) int Gb_Apu::read_register( gb_time_t time, gb_addr_t addr ) { // function now takes actual address, i.e. 0xFFXX - require( start_addr <= addr && addr <= end_addr ); + require( start_addr <= addr && addr < end_addr ); run_until( time );