From 3da323c6572cfefd6b19e893d17a189285c178fa Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Thu, 14 Dec 2017 20:30:56 -0500 Subject: [PATCH] Corrects lingering free TMS read. --- Components/9918/9918.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Components/9918/9918.cpp b/Components/9918/9918.cpp index 6cf2ece05..2661f8f75 100644 --- a/Components/9918/9918.cpp +++ b/Components/9918/9918.cpp @@ -626,8 +626,7 @@ void TMS9918::set_register(int address, uint8_t value) { ram_pointer_ = static_cast(low_write_ | (value << 8)); if(!(value & 0x40)) { // Officially a 'read' set, so perform lookahead. - read_ahead_buffer_ = ram_[ram_pointer_ & 16383]; - ram_pointer_++; + queued_access_ = MemoryAccess::Read; } } }