🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Want pseudo-trap handler examples

#40325
From: Stephen Jacobs
Date: Wed, 31 Jan 1990 15:34
17 lines
1331 bytes
I could really use examples of handlers for the software trap vectors.  Let's
just say that the documentation I have available isn't entirely clear or
consistent.  Specifically, if anyone would care to post fragments in C or
assembler that did the following 2 functions, I probably wouldn't be the
only person grateful to see them:

1) Attempts to read from a floppy disk.  If there is no disk in the drive,
   writes a message to the screen and waits for a keypress, then retries the
   original read (etc until satisfied).  The built-in 'drive not responding'
   alert is never activated.
2) Accepts input into a string with Cconrs  (do I have the name right?  I
   never remember such things, and my manuals are elsewhere).  If control
   C is pressed it intercepts the terminate vector and does something
   sensible (like clearing the input string and starting over).

Thanks.
                                     Steve J.
Technical Details
Message-ID: <1990Jan31.153441.7404@chinet.chi.il.us>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!brutus.cs.uiuc.edu!apple!motcsd!motsj1!mcdchg!chinet!saj

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!brutus.cs.uiuc.edu!apple!motcsd!motsj1!mcdchg!chinet!saj
From: saj@chinet.chi.il.us (Stephen Jacobs)
Newsgroups: comp.sys.atari.st
Subject: Want pseudo-trap handler examples
Message-ID: <1990Jan31.153441.7404@chinet.chi.il.us>
Date: 31 Jan 90 15:34:41 GMT
Organization: Chinet - Chicago Public Access UNIX
Lines: 17