]>
git.zerfleddert.de Git - proxmark3-svn/blob - tools/srecswap.pl
3 # endian-swap S records; we need this because the JTAG tools we're using
4 # expect the memory image in byte-swapped format
6 # Jonathan Westhues, April 2004
9 die "usage: $0 file-to-endian-swap.s19 > out.s19\n";
23 if(not /^S3(..)(........)(.*)(..)$/) {
24 die "bad S record at line $.\n";
31 while($data =~ m
#(..)(..)(..)(..)#g) {