chiark / gitweb /
update to conform to README.protocol r1.7
authorian <ian>
Sun, 6 Feb 2005 23:40:33 +0000 (23:40 +0000)
committerian <ian>
Sun, 6 Feb 2005 23:40:33 +0000 (23:40 +0000)
cebpic/make-idlocs

index a1447c5d0b6f55305764365888b126b2c1ea768a..fba3a35878d1b1e2aa6bdb114b8b5d5cea852c4f 100755 (executable)
@@ -5,8 +5,12 @@ $_=shift @ARGV;
 m/^\d+$/ or die;
 $_<32 or die;
 
-push @a, $_ ? '0x00' : '0x80';
-push @a, sprintf "0x%02x", $_;
+# @a is the ID locations, one byte per array entry,
+# with $a[0] being the first ID location (ie 0x200000).
+# Values must be in hex (or otherwise suitable for the assembler).
+
+$a[0]= sprintf "0x%02x", $_;
+$a[1]= $_ ? '0x00' : '0x80';
 
 printf "; automatically generated - do not edit\n" or die $!;
 for ($i= 0x200000;