Logo 
Search:

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: 3003

Answer:

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.

Share: 
 
 
 
 



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


Tagged: