https://bitbucket.org/hudson/magic-lantern
Raw File
Tip revision: 63b04638fb739d07aad3e41df076eabbaf56cfe9 authored by Trammell Hudson on 23 May 2009, 18:34:19 UTC
New functions
Tip revision: 63b0463
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