🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: mod.computers.68k
Article #7

CP/M-68K Exception handlers and RSXs

#7
From: RDROYA01
Date: Thu, 15 May 1986 14:15
21 lines
1913 bytes
There are two related questions I have about CP/M.  Using CP/M-68K, I have
been working on a way to call the CCP from within a program, a trivial
task.  I have it set up to do any built-in service, but if I, mistakenly,
ask it to run a program, then I cause a priviledge violation and my program
aborts.  I would like to set up an exception handler that traps priviledge
violations and returns control to my program. Ideally, the CCP should just
service the built-in calls and the exception handler should recover from
the error caused by trying to invoke a transient utility.  At this point,
I'm not really interested in being able to load other programs in memory
but simply avoid the abort caused by the exception. My question is

        How do I use the C language signal() function to do this?

I would rather use the C function primarily because it is supposed to
preserve all the registers and keep up with the sloppiness.  Assembly
language would probably be better, but I cannot live without ambiguity. I
have had problems using the BDOS set exception vector.  The trap #0 and
trap #1 instructions that are supposed to stay memory resident through a
"warm start" do not stay resident.  They are reset as soon as a program
exits. This is a real problem for setting up RSXs and running more than one
application at a time.
Technical Details
Message-ID: <8605151324.AA12373@ucbjade.Berkeley.Edu>
Path: arc1-ca.pugleaf.net!utzoo!decvax!decwrl!ucbvax!ULKYVX.BITNET!RDROYA01

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!decvax!decwrl!ucbvax!ULKYVX.BITNET!RDROYA01
From: RDROYA01@ULKYVX.BITNET.UUCP
Newsgroups: mod.computers.68k
Subject: CP/M-68K Exception handlers and RSXs
Message-ID: <8605151324.AA12373@ucbjade.Berkeley.Edu>
Date: Thu, 15-May-86 10:15:00 EDT
Article-I.D.: ucbjade.8605151324.AA12373
Posted: Thu May 15 10:15:00 1986
Date-Received: Fri, 16-May-86 05:34:53 EDT
Sender: mwm@ucbvax.BERKELEY.EDU
Organization: University of Louisville
Lines: 21
Approved: info-68k@ucbvax.berkeley.edu