Current Path : /compat/linux/proc/self/root/usr/local/lib/perl5/5.8.9/B/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/self/root/usr/local/lib/perl5/5.8.9/B/disassemble |
use B::Disassembler qw(disassemble_fh); use FileHandle; my $fh; if (@ARGV == 0) { $fh = \*STDIN; } elsif (@ARGV == 1) { $fh = new FileHandle "<$ARGV[0]"; } else { die "Usage: disassemble [filename]\n"; } sub print_insn { my ($insn, $arg) = @_; if (defined($arg)) { printf "%s %s\n", $insn, $arg; } else { print $insn, "\n"; } } disassemble_fh($fh, \&print_insn);