my ($source,$typ,$offset,$data)=($1,$2,hex($3),$4); my $j = 0; for (my $i=0; $i