DS80C400 C Libraries: TBIN File Format

A TBIN file is made up of multiple TBIN records, terminated by the end-of-file.

       [ TBIN Record ]
       [ TBIN Record ]
       [     ...     ]
       [ TBIN Record ]
       [ end of file ]
    

A TBIN record has 3 bytes of starting address, 2 bytes of (length-1), [length] bytes of data, and 2 bytes of CRC16. Therefore, a TBIN record can carry a maximum of 64Kbytes of data to load, plus its 7 bytes of overhead.

       [ A_low ][ A_high ][ A_xhigh ]
       [ L_low ][ L_high ]
       [ D1 D2 D3 ... D(L+1) ]
       [ CRC_low ][ CRC_high ]
    

For example...