Help for this page

Select Code to Download


  1. or download this
        switch ($opcode)
        {  
            'add' { print "\n The opcode reported was add with hex value 4
    +"; }
            'sub' { print "\n The opcode reported was sub with hex value 5
    +"; }
        }
    
  2. or download this
    syntax error at ./assembly2hex.pl line 21, near "'add' { "
    syntax error at ./assembly2hex.pl line 22, near "'sub' { "
    
  3. or download this
    #!/usr/bin/perl
    
    ...
        }
    
    }