From: ian Date: Sun, 6 Feb 2005 23:40:33 +0000 (+0000) Subject: update to conform to README.protocol r1.7 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=5bd921f59b9b95eb5ab2cc7a739c3d3149e4ccfc;p=trains.git update to conform to README.protocol r1.7 --- diff --git a/cebpic/make-idlocs b/cebpic/make-idlocs index a1447c5..fba3a35 100755 --- a/cebpic/make-idlocs +++ b/cebpic/make-idlocs @@ -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;