projects
/
emu8051.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove obsolete comment about older c++ code
[emu8051.git]
/
src
/
opcode2c.pl
diff --git
a/src/opcode2c.pl
b/src/opcode2c.pl
index
3e3bdc7
..
4741f07
100755
(executable)
--- a/
src/opcode2c.pl
+++ b/
src/opcode2c.pl
@@
-116,7
+116,7
@@
while($ligne=<OPCODELST>) {
$instargs[($instnumb << 2) + $i + 1]=$argstypes{$argslist[$i]};
}
}
$instargs[($instnumb << 2) + $i + 1]=$argstypes{$argslist[$i]};
}
}
-
+
if (not exists $insttext{$wordlist[2]}) {
$insttext[$nbinst]=$wordlist[2];
$insttext{$wordlist[2]}=$nbinst++;
if (not exists $insttext{$wordlist[2]}) {
$insttext[$nbinst]=$wordlist[2];
$insttext{$wordlist[2]}=$nbinst++;
@@
-215,8
+215,6
@@
for ($i=0 ; $i< 256; $i++) {
print INST_IMP " ","*"x76,"/\n";
print INST_IMP "int\n";
print INST_IMP "cpu8051_OP_$a_opcodehex[$i](void)\n";
print INST_IMP " ","*"x76,"/\n";
print INST_IMP "int\n";
print INST_IMP "cpu8051_OP_$a_opcodehex[$i](void)\n";
-# TEST hugo new...
-# print INST_DEF "int OP_$a_opcodehex[$i]( );\n";
print INST_IMP "{\n";
if( $i == 0x85 ) {
print INST_IMP "{\n";
if( $i == 0x85 ) {
@@
-251,7
+249,7
@@
for ($i=0 ; $i< 256; $i++) {
if ($op_destination == 5) { # @R1
print INST_IMP "unsigned char destination = cpu8051_ReadI ( cpu8051_ReadD( BANKPSW + _R1_ ) );\n";
}
if ($op_destination == 5) { # @R1
print INST_IMP "unsigned char destination = cpu8051_ReadI ( cpu8051_ReadD( BANKPSW + _R1_ ) );\n";
}
-
+
if ($op_destination == 6) { # R0
print INST_IMP "unsigned char destination = cpu8051_ReadD( BANKPSW + _R0_ );\n";
}
if ($op_destination == 6) { # R0
print INST_IMP "unsigned char destination = cpu8051_ReadD( BANKPSW + _R0_ );\n";
}