From: Hugo Villeneuve Date: Sun, 17 Nov 2013 20:08:39 +0000 (-0500) Subject: Fix bug with ORL instruction X-Git-Tag: v2.0.0~96 X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=00fd5e1abb9666bdb824beffacded2d5d0b8f054;p=emu8051.git Fix bug with ORL instruction --- diff --git a/src/opcode2c.pl b/src/opcode2c.pl index a783126..2147aa3 100755 --- a/src/opcode2c.pl +++ b/src/opcode2c.pl @@ -512,13 +512,7 @@ for ($i=0 ; $i< 256; $i++) { # ORL if ($insttype[$i] == 19) { - 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"; } # JNC