ps. as for the enumeration... i don't really remember the syntax for it.. but if you have an enum
hexdigits={0,1,2,3,4,5,6,7,8,9,10,A,B,C,D,E,F}
there must be a way to figure out the position a certain character is at in the enumeration...
i know you can do:
days={sun, mon, tues, .., etc}
and sun=1, mon=2 etc.
maybe the reverse is possible? i haven't used enums in a long time.. so i can't remember... but the point was that you should map the hex digit to a decimal digit some how. the enum was just a suggestion...