#!/usr/bin/perl -w

print "#include \"types.h\"\n";
print "const char _rom_src_data[] = {\n\t";
my $size = 0;
my $a;
while (read STDIN,$a,1) {
	printf "0x%02x,", ord($a);
	$size++;
	if ($size%8 == 0) { print "\n\t"; }
}
print <<EOT;
};

const u16 _rom_src_len = $size;

EOT
