var
time,timebegin,timeend,compteur,instr:longint;

begin

instr:=0;

TimeBegin:=meml[0:$46c];

for compteur:=0 to 650000 do
inc(instr);

TimeEnd:=meml[0:$46c];


time:=round(instr/((TimeEnd-TimeBegin)/18.2));
writeln(time,'  instruction par seconde');

end.


.model small
.stack 100h
.386
.data
timebegin dd 0
instr dd 0
.code

mov ax,@data
mov ds,ax


xor ax,ax
mov es,ax
mov di,46ch
mov eax,es:[di]
mov timebegin,eax

mov instr,0


mov ecx,650000
boucle:
inc instr
loop boucle


mov eax,es:[di]
sub eax,timebegin
imul eax,10
xor edx,edx
mov ebx,182
idiv ebx

mov ebx,eax
mov eax,instr
xor edx,edx
idiv ebx


;on affiche le nombre

end


















