Fix bug with ORL instruction
authorHugo Villeneuve <hugo@hugovil.com>
Sun, 17 Nov 2013 20:08:39 +0000 (15:08 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Sat, 22 Mar 2014 18:06:13 +0000 (14:06 -0400)
src/opcode2c.pl

index a783126..2147aa3 100755 (executable)
@@ -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