https://bitbucket.org/hudson/magic-lantern
Raw File
Tip revision: e9d672996b6532d11934a4f4b368943c8fbbf1c6 authored by Trammell Hudson on 17 May 2009, 04:22:14 UTC
Override specific tasks
Tip revision: e9d6729
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