aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/fuse/files/patch-z80_z80.pl
blob: 3abf1f8b92f1df01b60ff3496bc9c4ac5f0cca33 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- z80/z80.pl.orig Sat Sep 13 16:53:54 2003
+++ z80/z80.pl  Tue Oct 28 13:00:53 2003
@@ -1128,9 +1128,10 @@
 
     {
    no strict qw( refs );
+   my $func = "opcode_$opcode";
 
-   if( exists &{ "opcode_$opcode" } ) {
-       "opcode_$opcode"->( @arguments );
+   if( defined (&$func) ) {
+       &$func( @arguments );
    }
     }