home *** CD-ROM | disk | FTP | other *** search
- { Taken from PC magazine (Oct 85 issue) - written by Steve Hall using
- in-line machine code for super fast screen displays in Turbo Pascal }
-
- program fastdisp;
-
- type astring = string[255];
- var str1,str2 : astring;
- row,col : integer;
-
- procedure fastdisplay(var s: astring ; var r,c : integer);
-
- begin
- INLINE(
- $8B/$5E/$04/$8B/$3F/$4F/$8B/$5E/$08/$8B/$07/$48/$8B/$5E/$0C/$32/$ED/$8A/$0F/
- $80/$F9/$00/$74/$40/$C4/$76/$0C/$46/$BB/$40/$00/$8E/$C3/$26/$F7/$26/$4A/$00/
- $03/$F8/$D1/$E7/$26/$8B/$16/$63/$00/$83/$C2/$06/$B8/$00/$B8/$26/$8B/$1E/$10/
- $00/$81/$E3/$30/$00/$83/$FB/$30/$75/$03/$B8/$00/$B0/$8E/$C0/$EC/$A8/$01/$75/
- $FB/$FA/$EC/$A8/$01/$74/$FB/$A4/$47/$E2/$F1/$FB)
- end;
-
- begin
- str1 := 'TURBOTURBOTURBOTURBOTURBOTURBOTURBOTURBOTURBOTURBOTURBOTURBOTURBOTURBOTURBOTURBO';
- str2 := 'fastdisplayfastdisplayfastdisplayfastdisplayfastdisplayfastdisplayfastdisplayfas';
- clrscr;
- for row := 1 to 23 do begin
- gotoxy(1,row);
- write(str1);
- end;
- for row := 1 to 23 do begin
- col := 1;
- fastdisplay(str2,row,col);
- end;
- end.
-