hex code problem
hex code problem
(OP)
I have a AM29F010B with code I was able to read out of it. It is 147 pages of hex. Does anyone know how to convert (disassemble) this to a readable format. The code is loaded into a Motorolla ZCM916X1C microcontroller.
Thanks,
Paul
Thanks,
Paul





RE: hex code problem
RE: hex code problem
RE: hex code problem
RE: hex code problem
it would be simpler to (re)write the program in a hi level language.
What is the hardware ? What does it do ?
<nbucska@pcperipherals.com>
RE: hex code problem
RE: hex code problem
RE: hex code problem
RE: hex code problem
RE: hex code problem
RE: hex code problem
RE: hex code problem
Can't you contact him ? professionals usually feel responsible for what they stated.
If not:
Can't you find his ASSY files ? Assemble them and compare with the HEX file to identify.
What does the program do ?
<nbucska@pcperipherals.com>
RE: hex code problem
RE: hex code problem
Paul51 got the job to reproduce the work done by someone who left. Paul haven't mentioned any vehicle -- you insist
on it.
<nbucska@pcperipherals.com>
RE: hex code problem
What would you say if some student asked you to do his homework? There is no law saying that you have to perform your own schoolwork. Just because the is no law preventing you from doing it, I would hope that you would exercise your moral obligation to not only the student, the institution , and all of the alumni of that institution, that you would NOT contribute to the degredation of the accomplishment. Obviously, this is not a popular opinion, and I must be crazy for thinking these things.
The answer to the orignal post is, write your own program based on the instruction set for the microprocessor that is being used. This should be trivial based on the fact that EVERY INSTRUCTION AND ADDRESSING MODE IS DEFINED. Therfore, all you have to do is read in the hex/binary/etc. file and convert the opcodes / operands. Unfortunately, like it has already been posted, this will result in uncommented code that will be very difficult to troubleshoot. In addition, all variables will show up as hex values (addresses of the register location).
Hopefully, this will get you started. If you still can't do it, send me a copy of your hex file and what type of micro that you are using and I can come up with it.
Good Luck and keep us posted!
RE: hex code problem
dydt
RE: hex code problem
I don't think it is guilty to study on other people's work. We can learn from other people under the respect of the original. The similar case happened on the IBM PC bios. Finally, the reverse engineering is legal.
Regarding to your question, the program you need is the "universal dis-assembler". Some of them can let you enter a table to map the command, addressing mode and register name.
I have some general search machines and found a lot. Some of them are freeware. You can try.
Some hints may be useful for you. Draw the circuit diagram related to the EEROM to make sure the data bus and address bus are connected as sequence. When I work with the In Circuit Emulator, I found I can read the code from a computer board by the ICE but the dis-assembler fail to work because the computer board has swap the pin of the data bus and address bus. Also, my friend told me a story that the found a Z80 CPU with a data decoding ROM to encrypt the program and data.
Those techniques are simple but effective because most of the people assume the lay out on the CPU will use the standard one.
Hope it help.
RE: hex code problem
RE: hex code problem
Yes, it is a very easy, so it is common, trick. If I face your situration, I'll write a simple program to re-arrange the data and not going to hardware.
All the computer can make it very soon to verifly the result.
This is my style for your reference.
LKM