From f852af6cb8de67eb8abab8f3d5c517b576fbc2f9 Mon Sep 17 00:00:00 2001 From: AJR Date: Wed, 4 Dec 2019 17:40:46 -0500 Subject: r65c19: Fix BAR masking logic (nw) --- src/devices/cpu/m6502/or65c19.lst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/cpu/m6502/or65c19.lst b/src/devices/cpu/m6502/or65c19.lst index e88400cb117..e8314033b9d 100644 --- a/src/devices/cpu/m6502/or65c19.lst +++ b/src/devices/cpu/m6502/or65c19.lst @@ -66,7 +66,7 @@ bar_amr TMP2 = read(TMP); TMP = read_pc_noinc(); read_pc(); - TMP2 &= ~TMP; + TMP2 = ~TMP2 & TMP; TMP = read_pc(); if(TMP2 != 0) { read_pc_noinc(); -- cgit v1.2.3