6 use Data::Dump qw(dump);
8 my $file = read_file 'vrDIALOG.EN';
9 warn "# ", length($file), " bytes\n";
12 #$offset = 0x00013C90;
14 #$offset = 0x0141da + 2; # possible errors?
15 #$offset = 0x014502 + 2;
21 while ( $page < 20 ) {
24 printf "%02x ", ord(substr($file, $offset + $_, 1 )) foreach ( -2 .. 2 );
25 $len = ord(substr($file, $offset, 1));
30 printf "0x%06x %-5d %s\n", $offset, $len, '?';
35 my $string = substr($file,$offset + 1, $len * 2);
37 printf "0x%06x %-5d %s\n", $offset, $len, $string;
39 $offset += ( $len + 1 ) * 2;