home *** CD-ROM | disk | FTP | other *** search
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-
- Examples of ACSII-hex formats for :-
-
- INTEL
- MOTOROLA
- TEKTRONIX ( inc extended format )
-
-
- Note: the INTEL example (data length 16dec bytes) is the reference.
- : in following "byte" = binary value of 2 ASCII-hex charas
- hi nibble = 1st byte
-
-
-
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-
- Format : INTEL
-
-
- :LLAAAATTdd..ddCC
-
- LL = number of data bytes
- AAAA = 16 bit address
- TT = type
- 0 = data
- 1 = end record
- 2 = Upper Segment Base Address (USBA)
- 3 = start address record ( data length = 4 bytes)
-
- CC = checksum ( = -ve sum of record : ie sum of all byte-pairs = 0 )
- dd = ASCII-hex charas
-
- USBA format = :02000002ssssCC
- ( following data records will be have (16 * ssss) added to their load addr)
-
-
- ----------------------------------------------------------------------------
-
- :020000020500?? type 2 record , base = 500H
- :1012340090FAFCE96B002020202020202020202090 type 0 record (data)
- (load addr = 1234H)
- :00000001FF type 1 record (end)
-
- above converted to :-
-
- :1062340090FAFCE96B002020202020202020202040 <<EXAMPLE
- :00000001FF
-
-
- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
-
-
- MOTOROLA - all use S9 as end record
-
-
- Format : Motorola ( S1 , 16 bit address )
-
- |<-------------- LL ---------------->|
- S1LLAAAAdd..ddCC << Format
-
- LL = 2 + (number of data bytes) + 1
- AAAA = address
- CC = ~( LL + (AA .. + AA) + ( data bytes )) : Note 1's complement!
-
-
- S1LLAAAAdd..ddCC << Format
- S113623490FAFCE96B00202020202020202020203C <<EXAMPLE
- S9030000FC
-
-
-
-
-
-
-
- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
-
- Format : Motorola ( S2 , 24 bit address )
-
- S2LLAAAAAAdd..ddCC << Format
- S21400623490FAFCE96B00202020202020202020203B <<EXAMPLE
- S904000000FB
-
-
-
-
-
-
-
-
- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
-
- Format : Motorola ( S3 , 32 bit address )
-
- STLLAAAAAAAAdd..ddCC << Format
- S3150000623490FAFCE96B00202020202020202020203A <<EXAMPLE
- S90500000000FA
-
-
-
-
-
-
-
- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
-
- Format : Tektronix
-
- Note checksum algorithm
-
- /AAAALLRRdd..ddCC << Format
-
- AAAA = load address
- LL = record length ( number of data bytes : 0 = last record )
- RR = load checksum ( = sum of previous 6 de-ASCII'd CHARAS )
- CC = data " ( sum of de-ASCII'D CHARAS )
-
- /AAAALLRRdd..ddCC << Format
- /6234101090FAFCE96B002020202020202020202079 <<EXAMPLE
- /00000000
-
-
- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
-
- Format : Tektronix (extended)
-
- Note checksum algorithm
-
- %LLTCCky......ydd..dd << Format
-
- LL = length ( all charas after % )
- T = type chara ( 6 = data , 8 = end )
- CC = checksum ( sum of all de-ASCII'd CHARAS = 0 )
- k = of address charas, max 8 ( = 4 bytes )
- y...y = 'k' address charas
- xx = data as usual
-
-
- %LLTCCky......ydd..dd << Format
-
- %2E6A680000623490FAFCE96B0020202020202020202020 <<EXAMPLE
- %0E81E800000000
-
- *
-