🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #40362

Re: Want pseudo-trap handler examples

#40362
From: Ken Badertscher
Date: Thu, 01 Feb 1990 17:27
16 lines
1107 bytes
saj@chinet.chi.il.us (Stephen Jacobs) asks about critical error and
terminate handlers.

Intercepting the critical error handler is simply a matter of grabbing
logical vector 0x101 using Setexc(), and doing the appropriate thing
with the arguments sent to your error handler by the bios.  This is
documented in the GEMDOS manual in the "extended vectors" section.

Grabbing the terminate vector to "recover" from a ^C is not the way
to avoid having ^C terminate your application.  Use GEMDOS raw
i/o (Crawcin() and/or Crawio()) and roll your own string reading routine.

-- 
   |||   Ken Badertscher  (ames!atari!kbad)
   |||   Atari R&D System Software Engine
  / | \  #include <disclaimer>
Technical Details
Message-ID: <2016@atari.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!wuarchive!brutus.cs.uiuc.edu!apple!portal!atari!kbad
References: <1990Jan31.153441.7404@chinet.chi.il.us>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!wuarchive!brutus.cs.uiuc.edu!apple!portal!atari!kbad
From: kbad@atari.UUCP (Ken Badertscher)
Newsgroups: comp.sys.atari.st
Subject: Re: Want pseudo-trap handler examples
Message-ID: <2016@atari.UUCP>
Date: 1 Feb 90 17:27:01 GMT
References: <1990Jan31.153441.7404@chinet.chi.il.us>
Organization: Atari Corp., Sunnyvale, CA
Lines: 16