Ignore:
Timestamp:
Sep 29, 2010, 12:25:28 PM (9 years ago)
Author:
sacerdot
Message:

Several bug fixes and code clean-up.
New main file: test.ml to parse and execute an HEX file.
Usage: ./test.native foo.hex

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Deliverables/D4.1/IntelHex.mli

    r133 r138  
    1212type intel_hex_entry =
    1313{
    14   record_length: nibble * nibble;
    15   record_addr: nibble * nibble * nibble * nibble;
     14  record_length: byte;
     15  record_addr: word;
    1616  record_type: intel_hex_entry_type;
    17   data_field: nibble list;
    18   data_checksum: nibble * nibble
    19 };;
     17  data_field: byte list;
     18  data_checksum: byte
     19}
     20;;
    2021
    2122type intel_hex_format = intel_hex_entry list;;
     
    2728val hex_string_of_vect: 'a vect -> string;;
    2829
     30exception WrongFormat of string
     31
     32val intel_hex_of_file: string -> intel_hex_format
     33val process_intel_hex: intel_hex_format -> Physical.WordMap.map
     34
    2935val checksum_valid: intel_hex_entry -> bool;;
Note: See TracChangeset for help on using the changeset viewer.