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

  • Thread starter Thread starter kuchun
  • Start date Start date
  • Tags Tags
    Instruction
AI Thread Summary
Understanding the difference between fetch, read, and write instructions in the 8085 microprocessor is crucial; a fetch refers to the read cycle for instruction code, while read instructions (like LDA) retrieve data from memory, and write instructions (like STA) store data. To determine the number of T states for each instruction, one can refer to online resources listing 8085 opcodes. The discussion also highlights a question about the timing diagram for the opcode fetch instruction, specifically regarding the ALE signal and its timing in relation to the AD0-AD7 lines. It clarifies that ALE is high only briefly during the first T-state, while the address lines remain stable for the entire duration, due to the edge-triggered nature of the device. The conversation concludes with a request for the timing diagram of the CALL instruction in the 8085.
kuchun
Messages
11
Reaction score
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


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?
 


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?
 


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.
 


I want to know the timing diagram of CALL instruction in 8085..
 
In my discussions elsewhere, I've noticed a lot of disagreement regarding AI. A question that comes up is, "Is AI hype?" Unfortunately, when this question is asked, the one asking, as far as I can tell, may mean one of three things which can lead to lots of confusion. I'll list them out now for clarity. 1. Can AI do everything a human can do and how close are we to that? 2. Are corporations and governments using the promise of AI to gain more power for themselves? 3. Are AI and transhumans...
Sorry if 'Profile Badge' is not the correct term. I have an MS 365 subscription and I've noticed on my Word documents the small circle with my initials in it is sometimes different in colour document to document (it's the circle at the top right of the doc, that, when you hover over it it tells you you're signed in; if you click on it you get a bit more info). Last night I had four docs with a red circle, one with blue. When I closed the blue and opened it again it was red. Today I have 3...
Back
Top