home *** CD-ROM | disk | FTP | other *** search
/ Graphics Programming Black Book (Special Edition) / BlackBook.bin / disk1 / source / chapter3-p1 / lst3-3.asm next >
Assembly Source File  |  1997-06-18  |  451b  |  25 lines

  1. ; Test file;
  2. ; Measures the performance of 1000 loads of AL from
  3. ; memory. (Use by renaming to TESYCODE, which is
  4. ; included by PZTEST.ASM (Listing 3.2). PZTIME.BAT
  5. ; (Listing 3.4) does this, along with all assembly
  6. ; and linking.)
  7. ;
  8.      jmp  Skip ;jump around defined data
  9. ;
  10. MemVar   db   ?
  11. ;
  12. Skip:
  13. ;
  14. ; Start timing.
  15. ;
  16.      call ZTimerOn
  17. ;
  18.      rept 1000
  19.      mov al,[MemVar]
  20.      endm
  21. ;
  22. ; Stop timing.
  23. ;
  24.      call ZTimerOff
  25.