From: Hugo Villeneuve Date: Sun, 17 Nov 2013 20:18:19 +0000 (-0500) Subject: Fix bug with ANL instruction X-Git-Tag: v2.0.0~95 X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=bbd37b7501069f5e660ace4baeb4a46193eede3f;p=emu8051.git Fix bug with ANL instruction --- diff --git a/src/opcode2c.pl b/src/opcode2c.pl index 2147aa3..67c667f 100755 --- a/src/opcode2c.pl +++ b/src/opcode2c.pl @@ -522,13 +522,7 @@ for ($i=0 ; $i< 256; $i++) { # ANL if ($insttype[$i] == 21) { - if ($instargs[$i*4+1] == 17) { - # sur des bits - print INST_IMP "cpu8051_WriteD( _PSW_, ( ( destination & source) << 7 ) );\n"; - } else { - # sur des bytes - print INST_IMP "destination &= source;\n"; - } + print INST_IMP "destination &= source;\n"; } # JZ