Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Does addressing mode affect an instruction's Clock Cycles?

Hello all

I am a beginner to the field of assembly programming and have the following query regarding the Pentium architecture :

Since the instruction set supports more than one memory addressing modes, does not the addressing mode affect the total number of clock cycles taken for execution?

Do the commonly available instruction set execution time charts not take this into consideration or is the difference really insignificant?

Does anyone have an answer? Please help.

Many thanks and warm regards,
Sharon

Comments

  • sandyARMsandyARM Member Posts: 9
    : Hello all
    :
    : I am a beginner to the field of assembly programming and have the following query regarding the Pentium architecture :
    :
    : Since the instruction set supports more than one memory addressing modes, does not the addressing mode affect the total number of clock cycles taken for execution?
    :
    : Do the commonly available instruction set execution time charts not take this into consideration or is the difference really insignificant?
    :
    : Does anyone have an answer? Please help.
    :
    : Many thanks and warm regards,
    : Sharon
    :


    pls let me know if you find the answer.

    but still , theoritically it varries.

    assume MOVEx is the asm code.

    MOVEx r0, r2 copy content of r2 to r0
    MOVEx r0, [r2] load r2 content on the MAR get data from MDR , copy it
    to r0.
    so it takes the time < latency of reading memory over the BUS or cache>
    Is that what you were lookin for ?



Sign In or Register to comment.