From 27b2d118395409b7707acd3b35a72efb225808d4 Mon Sep 17 00:00:00 2001 From: byuu <2107894+byuu@users.noreply.github.com> Date: Tue, 6 Aug 2019 13:51:22 +0900 Subject: [PATCH] Small fix. --- bsnes/processor/hg51b/registers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bsnes/processor/hg51b/registers.cpp b/bsnes/processor/hg51b/registers.cpp index 490b8b9c..65bb42bb 100644 --- a/bsnes/processor/hg51b/registers.cpp +++ b/bsnes/processor/hg51b/registers.cpp @@ -64,8 +64,8 @@ auto HG51B::readRegister(uint7 address) -> uint24 { auto HG51B::writeRegister(uint7 address, uint24 data) -> void { switch(address) { - case 0x01: r.mul = r.mul & ~0xffffffull | data << 0; return; - case 0x02: r.mul = r.mul & 0xffffffull | data << 24; return; + case 0x01: r.mul = r.mul & 0xffffffull | data << 24; return; + case 0x02: r.mul = r.mul & ~0xffffffull | data << 0; return; case 0x03: r.mdr = data; return; case 0x08: r.rom = data; return; case 0x0c: r.ram = data; return;