home *** CD-ROM | disk | FTP | other *** search
- ;
- ; *** Listing 4-5 ***
- ;
- ; Measures the performance of 1000 SHR instructions
- ; in a row. Since SHR executes in 2 cycles but is
- ; 2 bytes long, the prefetch queue is always empty,
- ; and prefetching time determines the overall
- ; performance of the code.
- ;
- call ZTimerOn
- rept 1000
- shr ax,1
- endm
- call ZTimerOff