1 ;--------------------------------------------------------------------------
\r
2 ; Here is a source for measuring relative speed of computer. This source
\r
3 ; will NOT function properly under multitaskers, as they use timer them-
\r
4 ; selves. At least DesqView, OS/2 and Windows mess up with timer.
\r
6 ; This source is copyright 1994 of Teemu Peltonen aka Quark/Remedy Prods.
\r
7 ; If you modify this source, please do not spread it! You may spread the
\r
8 ; unmodified source as much as you like, but please check that length of
\r
9 ; the actual source (not including this comment between vertical lines) is
\r
12 ; The way of measuring computer's speed is not the best possible, but it
\r
13 ; works. Here's a small kind of table of speeds:
\r
21 ; 086 /4.77MHz 6006h
\r
23 ; Notice! Values may differ from these about 2 up or down. You should
\r
24 ; run the tester for about five times and use the value that seems to
\r
25 ; appear most times. Disk caches and others can mess up test.
\r
27 ; Thanks to my BBS's users for testing this piece of software!
\r
29 ; If you wish to add your computer's speed here, please contact author.
\r
30 ; Feel free to contact me, even if you wouldn't want to add your speed..
\r
31 ; Contact addresses are:
\r
32 ; teemu.peltonen@stream.nullnet.fi in Internet
\r
33 ; Teemu Peltonen@2:222/100 in Fidonet
\r
34 ; Teemu Peltonen@68:100/100 in DGi-net
\r
35 ; Or call Bitstream BBS (+358-21-4383244) and leave a comment to operator
\r
37 ;--------------------------------------------------------------------------
\r
38 stacki segment para stack use16 'stack'
\r
42 data segment para public use16 'data'
\r
43 hexval db '0123456789ABCDEF'
\r
44 stringi db 'Relative speed of computer is '
\r
52 code segment para public use16 'code'
\r
53 assume cs:code, ds:data, ss:stacki
\r
61 out 43h, al ;OUT can be used as immediate
\r
62 ;if register value under 100h
\r
70 mov cx, 1000h ;action here,
\r
71 here: ;must not take
\r
72 dec cx ;more than 1/18
\r
73 jnz here ;(0.0555) seconds to run
\r
88 neg dx ;Action took bx/1193180 seconds
\r
122 mov dx, offset stringi
\r