Subj: Re: [OT]Help with some hex. (Challenge) Date: 12/12/97 To: PICLIST@MITVMA.MIT.EDU The problem might be more clear if you add punctuation in appropriate locations as follows: :10 1000 00 - A200 00A2 FF09 A2FF 0BA2 FF08 A2FF 0AA2 - F2 :10 1010 00 - EF06 A280 00A2 2000 A720 00FC 2208 D035 - 05 :10 1020 00 - 8820 3B14 F8A2 2000 A620 00FC A220 00A7 - E4 :10 1030 00 - 2000 FC88 2032 14F9 23F7 2407 F8D5 24D5 - A2 :10 1040 00 - 0D8B 6005 06A2 8400 525F 0DA2 0003 A200 - 72 :10 1050 00 - 10A2 6F02 A281 0312 2423 DF24 1C8B 1000 - 34 :10 1060 00 - B8D8 0DD8 18D8 3322 0252 5E8E F7ED D41D - B1 :10 1070 00 - D933 D918 D90D D924 88FF FF0F 0588 203B - 13 :10 1080 00 - 14F9 D035 7210 3672 0505 7204 0972 FC0A - 23 :10 1090 00 - 7240 1188 203D 14F9 2D4A E612 8820 3E14 - 32 :10 10A0 00 - F92D 52E6 0988 203F 14F9 2D42 E220 8820 - CC :10 10B0 00 - 3D14 224A F888 203E 1422 52F8 8820 3F14 - 1A :10 10C0 00 - 2242 F888 21FF 1488 0100 1F22 FFEC 8820 - AB :10 10D0 00 - 2F14 8800 2F1F 22FF ECEB 8CF0 DD32 07AA - C3 :10 10E0 00 - F109 D01A AAF1 0AD0 1B9E 1B78 0207 8000 - D2 :10 10F0 00 - 2720 0D24 2082 0077 0411 E273 FB11 E0DD - 2C :10 1100 00 - 7604 11D9 741E 11E0 D4F6 67F5 69F1 17F7 - 6A :10 1110 00 - 67F1 1372 FE07 0A8E F838 7704 1509 7618 - FE The first byte has no apparent meaning and is always 10h. The next 2 bytes provide and address. The fourth byte is always 1. The next 16 bytes contain the data from the file. The final byte is calculated so that the checksum of all bytes within a line adds up to 0 (ignoring any carry to a high order byte). Bob In a message dated 97-12-11 12:48:58 EST, you write: > I've been given a hex file, but wasn't told which processor > it is for, (it could be a PIC), I've tried an 8051 disassembler > but it's not 8051 code. > > Any ideas? > > It looks like this: > from 0000 -0FFFH contain just 0FFH > and then ... > > :10100000A20000A2FF09A2FF0BA2FF08A2FF0AA2F2 > :10101000EF06A28000A22000A72000FC2208D03505 > > This looks like a table of jumps.( Anyone know which processor > has 0A2H as a jump instruction? > > > :1010200088203B14F8A22000A62000FCA22000A7E4 > :101030002000FC88203214F923F72407F8D524D5A2 > :101040000D8B600506A28400525F0DA20003A20072 > :1010500010A26F02A28103122423DF241C8B100034 > :10106000B8D80DD818D8332202525E8EF7EDD41DB1 > :10107000D933D918D90DD92488FFFF0F0588203B13 > :1010800014F9D03572103672050572040972FC0A23 > :1010900072401188203D14F92D4AE61288203E1432 > :1010A000F92D52E60988203F14F92D42E2208820CC > :1010B0003D14224AF888203E142252F888203F141A > :1010C0002242F88821FF148801001F22FFEC8820AB > :1010D0002F1488002F1F22FFECEB8CF0DD3207AAC3 > :1010E000F109D01AAAF10AD01B9E1B7802078000D2 > :1010F00027200D24208200770411E273FB11E0DD2C > :10110000760411D9741E11E0D4F667F569F117F76A > :1011100067F11372FE070A8EF838770415097618FE > > and it continues for another 60-70 lines. >