chiark / gitweb /
fix merged sba/lba settings
authorian <ian>
Wed, 7 Dec 2005 01:27:55 +0000 (01:27 +0000)
committerian <ian>
Wed, 7 Dec 2005 01:27:55 +0000 (01:27 +0000)
cebpic/merge-hex

index 6a17761c44c2fa35bb17ecec8a053fd3e9cfb6f5..df6598dd16c64d508f9db1177be3811666ab84d4 100755 (executable)
@@ -36,8 +36,8 @@ while (<>) {
 
     if (s/^000001//) { # End of File, p11
        $eof= $orgline;
-       if ($lba)    { $orgline= ":020000040000f8"; $lba=0; }
-       elsif ($sba) { $orgline= ":020000020000fc"; $sba=0; }
+       if ($lba)    { $orgline= ":020000040000FA\n"; $lba=0; }
+       elsif ($sba) { $orgline= ":020000020000FC\n"; $sba=0; }
        else { next; }
     } elsif (s/^000004(....)$//) { $lba= hex($1)<<16; } # Ext'd Linear Addr, p6
     elsif (s/^000002(....)$//) { $sba= hex($1)<<4; } # Ext'd Seg. Addr., p7