Ignore:
Timestamp:
Sep 8, 2010, 12:30:28 PM (10 years ago)
Author:
mulligan
Message:

Added pretty printing functions for bits, bytes, words etc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Deliverables/D4.1/physical.ml

    r42 r44  
    1 exception FOO2
     1exception Byte7_conversion
    22
    33type bit = bool
     
    1616 function
    1717    (false,b2,b3,b4),n -> (b2,b3,b4,n)
    18   | _ -> raise FOO2
     18  | _ -> raise Byte7_conversion
    1919
    2020let int_of_bit b = if b then 0 else 1
Note: See TracChangeset for help on using the changeset viewer.