Assembly Language FAQ

Submit Interview FAQ
Home » Interview FAQ » Assembly LanguageRSS Feeds

How does the microprocessor differentiate between data and instruction?

  Shared By: Rafael Costa    Date: Feb 24    Category: Assembly Language    Views: 7071


When the first m/c code of an instruction is fetched and decoded in the instruction register, the microprocessor recognizes the number of bytes required to fetch the entire instruction. For example MVI A, Data, the second byte is always considered as data. If the data byte is omitted by mistake whatever is in that memory location will be considered as data & the byte after the “data” will be treated as the next instruction.


Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].