Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"If anything can go wrong, it will." -- Edsel Murphy


devel / comp.sys.apple2.programmer / Re: Complete Pascal not working on IIgs

SubjectAuthor
o Re: Complete Pascal not working on IIgsDavid Schmenk

1
Re: Complete Pascal not working on IIgs

<646b362f-87d5-4985-8e9a-9895e0ed7a0cn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=93&group=comp.sys.apple2.programmer#93

  copy link   Newsgroups: comp.sys.apple2.programmer
X-Received: by 2002:ac8:4d42:: with SMTP id x2mr1579198qtv.178.1622091299854;
Wed, 26 May 2021 21:54:59 -0700 (PDT)
X-Received: by 2002:a9d:74c6:: with SMTP id a6mr1406390otl.132.1622091299605;
Wed, 26 May 2021 21:54:59 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2.programmer
Date: Wed, 26 May 2021 21:54:59 -0700 (PDT)
In-Reply-To: <freedom711-1619265019@macgui.com>
Injection-Info: google-groups.googlegroups.com; posting-host=71.83.112.38; posting-account=BEcBJwoAAADnWuRoZDUhMSNKNGG-dTV7
NNTP-Posting-Host: 71.83.112.38
References: <freedom711-1619265019@macgui.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <646b362f-87d5-4985-8e9a-9895e0ed7a0cn@googlegroups.com>
Subject: Re: Complete Pascal not working on IIgs
From: dschmenk@gmail.com (David Schmenk)
Injection-Date: Thu, 27 May 2021 04:54:59 +0000
Content-Type: text/plain; charset="UTF-8"
 by: David Schmenk - Thu, 27 May 2021 04:54 UTC

On Saturday, 24 April 2021 at 04:50:22 UTC-7, free bijsss wrote:
> Hi there!
>
> Here I am with another problem! Crying or Very sad
>
>
> I have installed both Complete Pascal and TML Pascal 2.0, but when I create
> even a small listing I don't see anything on the screen when I compile it
> and it doesn't tell me there are errors!
> Ex:
>
> Program HalloWorld;
> BEGIN
>
> Writeln ('Hallo World');
>
> END.
>
> Does anyone know this kind of problem?
>
> Thank you !
> I have installed both Complete Pascal and TML Pascal 2.0, but when I create
> even a small listing I don't see anything on the screen when I compile it
> and it doesn't tell me there are errors!
> Ex:
>
> Program HalloWorld;
> BEGIN
>
> Writeln ('Hallo World');
>
> END.
>
> Does anyone know this kind of problem?
>
> Thank you ! Crying or Very sad

Here is a sample Complete Pascal program I wrote a long time ago to print to the text screen. Hope it helps:

program Test;

uses Types, QuickDraw,TextTool;

var
inchar : integer;

procedure Text;
begin
GrafOff;
TextStartUp;
SetInGlobals(255, 128);
SetOutGlobals(255, 128);
SetErrGlobals(255, 128);
SetInputDevice(1, 3); { BASIC driver, slot #3 }
SetOutputDevice(1, 3);
SetErrorDevice(1, 3);
InitTextDev(0); { Init Input }
InitTextDev(1); { Init Output }
InitTextDev(2) { Init Error }
end;

procedure Home(clear : boolean);
begin
if clear then
WriteChar(12)
else
WriteChar(25)
end;

procedure WriteCR;
begin
WriteChar(10);
WriteChar(13)
end;
procedure Inverse;
begin
WriteChar(15)
end;
procedure Normal;
begin
WriteChar(14)
end;

procedure MouseText(enable : boolean);
begin
if enable then
WriteChar(27)
else
WriteChar(18)
end;

procedure GotoXY(x, y : integer);
begin
WriteChar(30);
WriteChar(x+32);
WriteChar(y+32)
end;

begin
Text;
Home(true);
GotoXY(32,4);
WriteString('Hello, World.');
GotoXY(0, 10);
WriteLine('Normal Characters:');
for inchar := 32 to 127 do
WriteChar(inchar);
WriteCR;
WriteCR;
WriteLine('Inverse Characters:');
Inverse;
for inchar := 32 to 127 do
WriteChar(inchar);
Normal;
WriteCR;
WriteCR;
WriteLine('MouseText Characters:');
MouseText(true);
Inverse;
for inchar := 32 to 127 do
WriteChar(inchar);
inchar := ReadChar(0);
end.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor