Path: 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 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.