??? 06/15/07 06:23 Read: times |
#140818 - Context Responding to: ???'s previous message |
Nimish Dave said:
How does the MCU distinguish whether the stored byte is data or instruction opcode. It doesn't! When the processor is ready to fetch an instruction, it simply loads whatever byte is addressed by the current Program Counter (PC) - if there's some bug or fault in your system, and that byte was not meant to be an instruction, there is no way that the processor can tell! It will simply fetch the byte and attempt to execute it as an instruction. This is why disassembling code can be so difficult! |