how to determine number of machine cycles for particular instructions in a microprocessor?
like for a instruction LXI (load registor pair with 16 bit immediate data) has 3 macine cycles:and they are =1 opcode fetch and 2 memory read i just want to know how i can say that it will have 1 opcode fetch and 2 mem.read or something else
@e.mccormick could use a little insight of yours :)
I never did Machine Organization, but I know it is partially processor dependent. Which instruction set you use determines how much each instruction costs. This is the whole CISC vs RISC instruction set argument. So I did a little searching and found some info on that topic. Hopefully it will get you started in the correct direction. http://en.wikipedia.org/wiki/Instruction_set
ok thanks i'll check u out :) but do u know someone in OS who can help me with this ?
@wio @ganeshie8
your databus is 8bit ?
yeah i'm using 8085 its data bus is 8 bit
then its simple
ok :)
16bit address and 8bit data if i remember correctly right ?
yes perfect :)
Ok, so you want to load 16bit data from memory into internal registers
yes
opcode fetch is same for every instruction
yes i know its same ok :)
the next two memory read operations are part of the execution phase
you need two memory reads because your databus is 8bit and you want to load 16bit data
yes!! it was that easy ?
basically your memory is also organized in 8bits itself. you just save the 16bit data in two continuous 8bit locations
yeah clear now
i can draw the timing diagram now :)
|dw:1416854788217:dw|
Join our real-time social learning platform and learn together with your friends!