*/
Written some cool source code? Upload it to Programmer's Heaven.
*/

View \TEST.PAS

TinyRTL v.1.0 (TP7.0)

Submitted By: Unknown
Rating: (Not rated) (Rate It)


{ This is the main demo program for TinyRTL }

Program TinyRTL_Test;
{$R-,S-,Q-,I-,N-,E-}

procedure ShowText; assembler;
const
   Msg   :PChar =
   'This text is shown using DOS ...'#9'Line #$';
asm
   mov  dx,word ptr Msg
   mov  ah,9
   int  21h
end;

procedure ShowLine(Line                :Byte); assembler;
const
   Msg   :array [0..6] of Char =
   #0#0#13#10'$';
asm
   mov  al,Line
   aam
   xchg al,ah
   add  ax,'00'
   mov  word ptr Msg,ax
   mov  dx,offset Msg
   mov  ah,9
   int  21h
end;

procedure Run;
var
   Line            :Byte;
begin
   for Line:=1 to 20 do
   begin
      ShowText;
      ShowLine(Line);
   end;
end;

begin
   Run;
end.

corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.