Article View: gnu.gcc.help
Article #52070GCC & DOS interrupts
From: Alun Jones
Date: Wed, 17 Feb 1993 10:23
Date: Wed, 17 Feb 1993 10:23
20 lines
1718 bytes
1718 bytes
Sorry if this is the wrong group or I am being hopelessly naive...
I am running GCC 2.2.2d on a PC. Until recently I've been using Borland
C, but would like to port my code to GCC to avoid the brain-dead segmented
rubbish they call real mode. My problem is that I have to access a driver
to talk to a DSP processor using DOS interrupts. Whenever I try this I
get an exception from the program. Using interrupt 0x21 to find the
required interrupt vector gives exception no. 0x21, likewise interrupt
0x65 (to access the board) gives exception 0x65. I have a suspicion that
I'm asking for the impossible here, and that real mode calls can't be
made under the GO32 extender. If anyone could confirm that or give me
a useful counterexample I'd be very grateful,
Thanks in advance,
Alun.
#!/usr/local/bin/perl
$_=join("\:",@w=sort(split("\_","Once,_nab_Cones_per._yac._fuj@_BunJ_AAl_Fept
.+_MSc_Io_Kute_D,_Jmp_Go_ED_Nie_RAber_Twy_Uth.+_HfC_PU._QW._Lr_zukss_ba_Syst_
")));s/\n//g;s/ss/\n/;s/\:.//g;s/([A-Y])/\ $1/g;s/\s+\A+/\A/;s/\+/\ /g;print;
Technical Details
Message-ID:
<1993Feb17.102315.1798@aber.ac.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!doc.ic.ac.uk!pipex!bnr.co.uk!uknet!gdt!aber!aujShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,c4b73af4d01c7169,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-02-17 02:23:15 PST Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!doc.ic.ac.uk!pipex!bnr.co.uk!uknet!gdt!aber!auj From: auj@aber.ac.uk (Alun Jones) Newsgroups: gnu.gcc.help Subject: GCC & DOS interrupts Summary: How to call interrupt 0x21 without getting an exception ? Keywords: DOS. Message-ID: <1993Feb17.102315.1798@aber.ac.uk> Date: 17 Feb 93 10:23:15 GMT Sender: auj@aber.ac.uk (Alun Jones) Followup-To: gnu.gcc.help Organization: Prifysgol Cymru (University of Wales) Aberystwyth Lines: 20