home *** CD-ROM | disk | FTP | other *** search
/ Graphics Programming Black Book (Special Edition) / BlackBook.bin / disk1 / source / chapter12 / lst12-2.asm < prev   
Assembly Source File  |  1997-06-18  |  342b  |  4 lines

  1. ; Measures the effect of loading a byte register 1 cycle before
  2. ; using a register to address memory.
  3.     mov    bp,2    ;run the test code twice to make sure                ; it's cached    sub    bx,bxCacheFillLoop:    call    ZTimerOn ;start timing    rept    1000    nop    mov    dl,cl    mov    ax,[bx]    endm    call    ZTimerOff ;stop timing    dec    bp    jz    Done    jmp    CacheFillLoopDone:
  4.