Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TASM 2.x / MASM 6.x Assembly Language - <b>effective address (ea) calculations</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Effective Address (EA) Calculations

    This table lists the number of clock cycles required to calculate the
    effective address on the 8088 microprocessor.  The 80x86 processors
    require considerably fewer clock cycles to calculate effective
    addresses, so this table represents the worst-case.

  --------------------------------------------------------------------------
    EA Component                  8088 Clocks          Example
    Displacement                       6               MOV AX,ADDR

    Register indirect                  5               MOV AX,[BP]
        BX, BP, SI, DI

    Displacement + Base or Index       9               MOV AX,ADDR[BP]
        BX + Disp, BP + Disp
        SI + Disp, DI + Disp

    Base + Index
        BP + DI, BX + SI               7               MOV AX,[BP+DI]
        BP + SI, BX + DI               8               MOV AX,[BX+DI]

    Displacement + Base + Index
        BP + DI + Disp                 11              MOV AX,ADDR[BP+DI]
        BX + SI + Disp

        BP + SI + Disp                 12              MOV AX,ADDR[BP+SI]
        BX + DI + Disp
  --------------------------------------------------------------------------

       Notes:         Add 2 clocks for segment overrides

                      Each memory reference requires an additional 4 clock
                      cycles.  The Transfers field in the instruction
                      timing charts gives the number of memory references
                      for each instruction.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson