Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!hao!ames!ucbcad!zodiac!MOON!egullich From: egullich@MOON (Eric Gullichsen) Newsgroups: comp.sys.amiga Subject: Prolog for the Amiga... need help Message-ID: <8711092331.AA08117@moon.ads.arpa> Date: Mon, 9-Nov-87 18:31:55 EST Article-I.D.: moon.8711092331.AA08117 Posted: Mon Nov 9 18:31:55 1987 Date-Received: Wed, 11-Nov-87 20:28:19 EST Sender: daemon@zodiac.UUCP Lines: 42 Hello net: In response to the recent postings asking about a Prolog for the Amiga (and more honestly, 'cause I want one) I spent a few hours trying to port Edinburgh's CProlog, for which I have licenced source, to Aztec. CProlog comes from the darkest antiquity of Prolog history, the source I have being a 1982 port from an ICL 2900, whatever that is... [The code is rather grotesque, with gotos (!) and many liberties taken with typing. Statements like: p = *p abound.] The problem I pose for the wizards is as follows: How to do signals a la Unix in Aztec? Specifically, I have to be able to interrupt Prolog execution on a user's ^C, and jump to an interrput handler. Lattice seems to support signals as I need them, but the code would require more work than I have the patience for in order to compile under Lattice, whereas compilation (despite many warnings) seems OK in Aztec. Any pointers to an example of handling ^C interrupts in Aztec, anywhere on Fish disks or some other source I'm likely to have, will be greatly appreciated, and rewarded by the eventual posting of a set of Prolog diffs here. The AmigaDOS manual talks of "break" as setting "attention flags" in a task. RKM says nothing about attention flags, and is vague (to my inexperience) about software interrupts in interrupt processing. Thanks from an Amiga neophyte - Eric Gullichsen ARPA: egullich@ads.arpa Usenet: ...sun!ads!egullich I merely consult for ADS. They no nothing of this.