??? 06/15/07 08:50 Read: times |
#140826 - disassembler Responding to: ???'s previous message |
Nimish Dave said:
DTPR is used to point these bytes.Is there another way to acess this bytes. This is fully explained in the "bible". In the "biblical" 51, code memory can be accessed only using movc instructions, of which there are two: movc a,@a+pc, and movc a,@a+dptr. However, there are "data" in the fetched code, too: the parameters of instructions. For example, if you have: 0030: 24 03 add a,#03hand you set PC wrong (e.g. by LJMP 0031h), the '51 core will execute a RR A (its opcode is 03). Nimish Dave said:
Another problem is that when we try to read the bytes in between wrong mnemonics is shown.What can be the solution. Use a good disassembler where you can control which part of the binary will be treated as code and which as data (and what kind of data it is). By far the best you can get for '51 is Jeff Post's d52, just a click away from here (look at the column at the left). JW |