From 933d69a256bf1cb787090c24f395bb2ad23520df Mon Sep 17 00:00:00 2001 From: Thomas Harte <thomas.harte@gmail.com> Date: Tue, 1 Aug 2017 07:51:13 -0400 Subject: [PATCH] Fixed slightly: the CPC wiki has a typo. It's 12 and 13 that move up to 14 and 15. --- Machines/AmstradCPC/AmstradCPC.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Machines/AmstradCPC/AmstradCPC.cpp b/Machines/AmstradCPC/AmstradCPC.cpp index a99259a18..1d065b697 100644 --- a/Machines/AmstradCPC/AmstradCPC.cpp +++ b/Machines/AmstradCPC/AmstradCPC.cpp @@ -35,12 +35,12 @@ struct CRTCBusHandler { } if(pixel_pointer_) { // the CPC shuffles output lines as: - // MA12 MA11 RA2 RA1 RA0 MA9 MA8 MA7 MA6 MA5 MA4 MA3 MA2 MA1 MA0 CCLK + // MA13 MA12 RA2 RA1 RA0 MA9 MA8 MA7 MA6 MA5 MA4 MA3 MA2 MA1 MA0 CCLK uint16_t address = (uint16_t)( - ((state.refresh_address & 0x3FF) << 1) | - ((state.row_address & 7) << 11) | - ((state.refresh_address & 0x1800) << 3) + ((state.refresh_address & 0x3ff) << 1) | + ((state.row_address & 0x7) << 11) | + ((state.refresh_address & 0x3000) << 2) ); *pixel_pointer_++ = ram_[address];