🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.pc
Article #7790

Catching overflow with Microsoft C?

#7790
From: Steven Pemberton
Date: Mon, 01 Sep 1986 15:34
20 lines
1402 bytes
Two queries about using Microsoft C:

1) anybody know how to catch overflow from a regular floating point
operation (such as + or *), rather than a math function such as sin? Most C
systems either ignore floating overflow or let you catch it with signal(),
but MSC only allows you to catch control-c with signal, and seems only to
let you catch overflow from math routines.

2) anybody know if it's possible to call interrupts 37 and 38 (hex 25 and
26): absolute disk read/write. When I try it, the program crashes,
presumably because these two interrupts leave the flags on the stack
(although goodness knows why), and intdos() doesn't seem to account for this.
Of course, I can use interrupt 13 hex to achieve the same end, but it's more
work (first reading the boot sector to find out the number of sectors and
sides).

Thanks in advance

Steven Pemberton, CWI, Amsterdam; steven@mcvax.uucp
Technical Details
Message-ID: <7061@boring.mcvax.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!mcvax!steven

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!mcvax!steven
From: steven@mcvax.uucp (Steven Pemberton)
Newsgroups: net.micro.pc
Subject: Catching overflow with Microsoft C?
Message-ID: <7061@boring.mcvax.UUCP>
Date: Mon, 1-Sep-86 11:34:53 EDT
Article-I.D.: boring.7061
Posted: Mon Sep  1 11:34:53 1986
Date-Received: Mon, 1-Sep-86 23:01:54 EDT
Reply-To: steven@mcvax.uucp
Organization: CWI, Amsterdam
Lines: 19
Apparently-To: rnews@mcvax