home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Graphics Programming Black Book (Special Edition)
/
BlackBook.bin
/
disk1
/
zoa
/
zen_list.exe
/
LST7-20.ASM
< prev
next >
Wrap
Assembly Source File
|
1990-02-15
|
385b
|
20 lines
;
; *** Listing 7-20 ***
;
; Measures the performance of multiplying by 80 with
; shifts and adds.
;
sub ax,ax
call ZTimerOn
rept 1000
mov ax,10 ;so we have a constant value to
; multiply by
mov cl,4
shl ax,cl ;times 16
mov cx,ax ;set aside times 16
shl ax,1 ;times 32
shl ax,1 ;times 64
add ax,cx ;times 80 (times 64 + times 16)
endm
call ZTimerOff