🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.pascal
Article #168

Error in Turbo-Pascal?

#168
From: vr0z05
Date: Wed, 03 Apr 1985 21:28
41 lines
1560 bytes
Hello folks,

is there anybody in net-land who is able to help me?
the following program will not work, but why not?
(TURBO-PASCAL V.2.0 on IBM-PC/XT)

>PROGRAM TEST;
>type REGPACK = record
>                  AX,BX,CX,DX,BP,SI,DI,DS,ES,FLAGS : integer;
>               end;
>var RECPACK : REGPACK;
>procedure INTR_TEST;
>begin
>   inline($FB/$CF) {STI/IRET}
>end;
>begin
>   RECPACK.AX := ($25 shl 8) + $50;
>   RECPACK.DS := cseg;
>   RECPACK.DX := ofs(INTR_TEST);
>   intr($21,RECPACK);
>   intr($50,RECPACK);
>end.

The program starts correct, changes the interrupt-vector $50 to the address
of INTR_TEST, then calls via INT the procedure INTR_TEST and executes it
(until now nothing wrong), but after that the program hangs (no BREAK,
no RESET will work, only POWER OFF/ON).

Helpfull hints to

Uwe Hoch
University of Dortmund
Computer Science Department(IRB)
P.O. Box 500500
D-4600 Dortmund 50
West-Germany

via mail or uucp.

Thanks in advance!
Technical Details
Message-ID: <nf18500001@unido.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!mcvax!unido!vr0z05

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: notesnews 0.1 (unido 12/05/84); site unido.UUCP
Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!mcvax!unido!vr0z05
From: vr0z05@unido.UUCP
Newsgroups: net.lang.pascal
Subject: Error in Turbo-Pascal?
Message-ID: <nf18500001@unido.UUCP>
Date: Wed, 3-Apr-85 16:28:00 EST
Article-I.D.: unido.nf18500001
Posted: Wed Apr  3 16:28:00 1985
Date-Received: Sun, 7-Apr-85 06:47:38 EST
Sender: notes@unido.UUCP
Lines: 42
Nf-ID: #N:unido:18500001:000:952
Nf-From: unido!vr0z05    Apr  3 19:28:00 1985