From 7dcce64f101fe9a51b58bd19cede9dbe5b6291b7 Mon Sep 17 00:00:00 2001 From: Takashi Toyoshima Date: Mon, 8 Dec 2014 03:18:54 +0900 Subject: [PATCH] Bug fix: bit --- 6502.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/6502.S b/6502.S index 76b14af..d974f36 100644 --- a/6502.S +++ b/6502.S @@ -440,7 +440,7 @@ .macro _bit __cl (FLAG_N | FLAG_Z | FLAG_V) mov r1, RA - ands r0, r1, r0 + ands r1, r1, r0 bne 1f __se FLAG_Z 1: