🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #50278

DOS GCC 2.4.5 interface to BIOS

#50278
From: Dieter Stoll
Date: Tue, 26 Oct 1993 11:51
22 lines
1732 bytes
As a follow-up to my previous post, I have now gotten go32.exe and
debug32.exe to work with my little program that uses INT 13H. I did
so by patching the .exes to let INT 13 pass thru (since I don't have
Turbo C I couldn't recompile from the sources, but I just put a 13h
in place of the 17h in the list of pass-thru interrupt numbers - I
don't need the printer services provided by int17 anyway).
The calls to INT13 work fine except for the "read sector" call which
expects the address of the buffer (where the data should go) in
ES:BX. Data is in fact read from the disk, but appears to finish somewhere
in Nirvana. Setting ES is useless anyway (from what I understand,
there is no way to force the segment registers to be set to specific
values), so I just set BX to point to the address of my buffer. Unfortunately,
the BIOS seems not to care.
Am I completely out of luck with this one?
Thanks for any hints!
-- Dieter

-- 
Dieter Stoll                     work: Lennartz electronic GmbH 
D-72127 Kusterdingen                   Bismarckstrasse 136
Germany                                D-72072 Tuebingen
home phone: +49-7071-38321 
Technical Details
Message-ID: <CFI69t.2uE@aragon.stgt.sub.org>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!rz.uni-karlsruhe.de!news.uni-stuttgart.de!delos!aragon.stgt.sub.org!dstoll

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,fb8f9cbf12b08210,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-10-30 13:32:38 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!rz.uni-karlsruhe.de!news.uni-stuttgart.de!delos!aragon.stgt.sub.org!dstoll
From: dstoll@aragon.stgt.sub.org (Dieter Stoll)
Subject: DOS GCC 2.4.5 interface to BIOS
Message-ID: <CFI69t.2uE@aragon.stgt.sub.org>
Organization: Novalis - Laboratoire d'Intelligence Artificielle, Sindelfingen, EUROPE
Date: Tue, 26 Oct 1993 11:51:28 GMT
Lines: 22