https://bitbucket.org/hudson/magic-lantern
Raw File
Tip revision: f92b7aa761d5be8fa686410257eb1b925e15c722 authored by hudson@kremvax on 17 June 2009, 19:06:10 UTC
Bump version
Tip revision: f92b7aa
string-dump
#!/usr/bin/perl
use warnings;
use strict;

while(<>)
{
	my ($val) = /:\s*([0-9A-Fa-f]+)\s*/ or next;
	$val = hex $val;
	while( $val )
	{
		print chr( $val & 0xFF );
		$val >>= 8;
	}
}

print "\n";
back to top