home *** CD-ROM | disk | FTP | other *** search
- Program StrPrnt;
- { Program for testing of Dos 2.0 funtion $9 (print string)
- { Speed is comparable to Pascal write.
- { Danny Cavasos June 1984 }
- type
- varX = record
- varL,varH: Byte;
- end;
- RecPack = record
- AX: varX;
- BX,CX,DX,BP,SI,DI,DS,ES,FLAGS: Integer;
- end;
- var
- IntParm : RecPack;
- y : Integer;
- AnyString: string[81];
- begin
- clrscr;
- AnyString:='*------string to test the speed of DOS interrupt hex 23 function 9 ----------*$';
- for y:=1 to 24 do
- begin
- gotoXY(1,y);
- with IntParm do
- begin
- AX.varH:=$9;
- DS:=Seg(AnyString); {get segment where string resides}
- DX:=Ofs(AnyString)+1; {get offset for string. add 1 to skip length byte}
- MsDos(IntParm);
- end;
- end;
- gotoXY(1,1);
- end.