From: ian Date: Fri, 22 Oct 2004 00:14:03 +0000 (+0000) Subject: finish listing bit uses X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=2b75c02a5cad25746375375e6a5660f5dc456d45;p=trains.git finish listing bit uses --- diff --git a/layout/segcmapassign b/layout/segcmapassign index 1fa5bdb..3de3fd3 100755 --- a/layout/segcmapassign +++ b/layout/segcmapassign @@ -1,5 +1,5 @@ #!/usr/bin/perl -# input: +# input file: # lines, with one canonical subsegment specification (csss) each # (need not be unique) # output: @@ -11,16 +11,21 @@ # ...code to compute and stack red in range [0,1>... # setrgbcolor # -# Encoding is as follows: +# Encoding is as follows (bits from MSbit to LSbit): # # RED -# 6 bits angle -# 1 bit `edge or core' (currently 0 meaning `core') # 1 bit reserved (0) +# 1 bit `edge or core' (currently 0 meaning `core') +# 6 bits angle # # GREEN # 2 bits segment overflow -# 6 bits moveable feature +# 6 bits moveable feature and position +# each moveable feature has an unambiguous prefix +# the remainder of the bits are the position of that feature +# the feature all-bits-1 (0b1111111) is for fixed track +# (so every moveable feature prefix must contain at least one 0) # -# -# 10 bits +# BLUE +# 8 bits segment main +