🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.misc
Article #124

What does INTR and GOTOXY keywords do?

#124
From: John H. Chauvin
Date: Tue, 27 Jan 1998 00:00
50 lines
1851 bytes
I recently obtained a old (early 1980s) Pascal program which was
originally written to work on a PC (most likely DOS). I am having
difficulty compiling the two functions listed below.
Specifically, the compiler does not understand the INTR and
GOTOXY keywords. Any idea what these do? If so, how can I
duplicate their function using CodeWarrior Pro 2 for Windows?

Thanks,

John Chauvin 


-------------------------------------------------------------
FUNCTION GETCHAR : CHAR;

TYPE    REGPACK = RECORD
                  AX,BX,CX,DX,BP,SI,DI,DS,ES,FLAGS : INTEGER;
                  END;

VAR     REGISTERS : REGPACK;
        C : CHAR;

BEGIN
C := CHR(0);
WHILE C = CHR(0) DO
      BEGIN
      REGISTERS.AX := 8*256;
      INTR(33,REGISTERS);              <=== What is INTR?
      C := CHR(REGISTERS.AX AND 255);
      END;
GETCHAR := C;
END; 
-------------------------------------------------------------

-------------------------------------------------------------
PROCEDURE CLEAR; 
VAR I : INTEGER;

BEGIN
FOR I := 1 TO 25 DO WRITELN;
GOTOXY(0,0);                         <==== What is GOTOXY?
END;      
-------------------------------------------------------------



-- 
John H. Chauvin jchauvin@netcom.COM
Netcom - Online Communication Services San Jose, CA
Technical Details
Message-ID: <jchauvinEnGL1M.JHp@netcom.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10261c,eb48d5f0442c1ea8,start
X-Google-Attributes: gid10261c,public
X-Google-Thread: 108ebd,eb48d5f0442c1ea8,start
X-Google-Attributes: gid108ebd,public
From: jchauvin@netcom.com (John H. Chauvin)
Subject: What does INTR and GOTOXY keywords do?
Date: 1998/01/27
Message-ID: <jchauvinEnGL1M.JHp@netcom.com>
X-Deja-AN: 319755508
Sender: jchauvin@netcom5.netcom.com
Organization: Netcom On-Line Services
Newsgroups: comp.lang.pascal.misc,borland.public.turbopascal