How can I understand whether an instruction is a fetch or read or

In summary, an 8085 microprocessor instruction has a "fetch" cycle, a "read" cycle, and a "write" cycle. The "fetch" cycle enables the address lines AD0-AD7 to carry the lower order memory address. The "read" cycle reads data from memory, and the "write" cycle writes data.
  • #1
kuchun
11
1
How can I understand whether an instruction is a fetch or read or write instruction?..Please explain with examples of microprocessor 8085 instruction.
How can I count the no. of T states required by a particular 8085 microprocessor instruction?
Thank you
 
Computer science news on Phys.org
  • #2


A "fetch" means the read cycle used to read the code bytes that make up an instruction. There isn't a "fetch" instruction. A "read" instruction is one that reads data from memory (like LDA), and a "write" instruction is one that writes data (like STA).

For the number of cycles for each instruction do a web search for "8085 opcode". Here's an example:

http://www.pastraiser.com/cpu/i8085/i8085_opcodes.html

Just curious, why the 8085? Are these still available?
 
  • #3


Thanks for your quick reply..I got the picture..But I have another question regarding the timing diagram of opcode fetch instruction:
We know that for the 1st T-state of the fetch cycle "ALE" signal remains high, thus enabling the AD0-AD7 to carry the lower order address.. But in the timing diagram the "ALE" signal is shown high only for a part of the 1st T-state, not for the total duration of the 1st T-state, whereas the AD0-AD7 lines carry the lower order memory address for the total duration of the 1st T-state..How is it possible?
 
  • #4


kuchun said:
Thanks for your quick reply..I got the picture..But I have another question regarding the timing diagram of opcode fetch instruction: We know that for the 1st T-state of the fetch cycle "ALE" signal remains high, thus enabling the AD0-AD7 to carry the lower order address.. But in the timing diagram the "ALE" signal is shown high only for a part of the 1st T-state, not for the total duration of the 1st T-state, whereas the AD0-AD7 lines carry the lower order memory address for the total duration of the 1st T-state..How is it possible?
This is an edge triggered device. The rising or falling edges of the primary clock drives everything else, with a slight delay, which may or may not be shown in these timing diagrams. ALE drops on the rising edge of the clock. The address lines are guaranteed to be set and stable when ALE drops, and that is when the 8085 latches used to hold an address are triggered. It doesn't matter when AD0-AD7 are dropped, as long as they are dropped long enough after ALE is dropped to not corrupt the address latches. AD0-AD7 are probably dropped on the next primary clock edge.

I don't know if an 8085 uses anyone shot delay circuits which can create delays independent of the primary clock. A one shot delay circuit relies on a fixed or programmable number of gate delays thorugh a series of transitors to generate a crude fixed pulse duration independent of the primary clock. These are not that accurate because gate delays can vary a bit from chip to chip.
 
  • #5


I want to know the timing diagram of CALL instruction in 8085..
 

Related to How can I understand whether an instruction is a fetch or read or

1. How can I differentiate between a fetch and a read instruction?

A fetch instruction involves retrieving data from a memory location, while a read instruction involves simply accessing data that is already stored in a memory location.

2. What is the purpose of a fetch instruction?

A fetch instruction is used to retrieve data from a memory location and load it into a processor register for further processing or manipulation.

3. How does a read instruction differ from a load instruction?

A read instruction is used to access data from a memory location, while a load instruction involves moving data from memory into a processor register for processing.

4. Can a single instruction be both a fetch and a read instruction?

Yes, a single instruction can involve both retrieving data from a memory location and accessing data that is already stored in a memory location.

5. How do I know which type of instruction is being used in a program?

The type of instruction being used in a program can usually be determined by reading the program's code or documentation. Fetch and read instructions will typically have different syntax and perform different actions, so it is important to carefully analyze the code to determine which type of instruction is being used.

Similar threads

  • Computing and Technology
Replies
10
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
10
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
3K
  • Computing and Technology
Replies
5
Views
2K
  • Programming and Computer Science
Replies
25
Views
2K
Replies
3
Views
1K
  • Introductory Physics Homework Help
Replies
2
Views
949
  • Electrical Engineering
Replies
5
Views
2K
  • Computing and Technology
Replies
2
Views
2K
Replies
5
Views
1K
Back
Top