🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #1790

DOS BIOS calls in OS/2

#1790
From: Bob Pickles
Date: Fri, 06 Nov 1992 19:54
39 lines
1984 bytes
We have a program that runs under DOS that uses the BIOS interrupts.
This program is reading and writing a configuration to a Proprietary
Formatted Diskette. We change some of the settings in the BIOS floppy
diskette parametter block (INT 0x1E). The code in DOS is as follows:

	ptr_1e = _dos_getvect(0x1e);
        // modify diskette parameters in our table
        // setup our diskette parametter table
        _dos_setvect(0x1e, our_table);

         regs.h.ah = 0;
         regs.h.dl = 0;   // drive number
         int86x(0x13, &regs, &regs, &sregs); // reset disk
         regs.h.ah = 0x17;
         regs.h.dl = 0;   // drive number
         regs.al = 4;
         int86x(0x13, &regs, &regs, &sregs); // set DASD

         // We use the Interrupt 0x13 to read and write to disk.

We are porting this code to OS/2. It is possible in OS/2 without
writing a device driver to access the floppy diskette drivers
parameters and read and write to them without the OS giving a
error that the program is writing outside it's own memory? The
DosDevIOCtl() functions allow catergory 8 for floppies and
catergory 9 for hard disks, but do not allow changing the base
BIOS interrupt 0x1E parameters. 

Can the above program code be done in OS/2 within the application
program? Inquiring OS/2 programmers would like to know.

Bob Pickles

-- 
*********************************************************************
*  >>>>>>>>>  Bob Pickles : Pyramid System Administrator <<<<<<<<<  *
*  >>>>>>>>>  UUCP : ...!uunet!censor!perle!bob          <<<<<<<<<  *
*********************************************************************
Technical Details
Message-ID: <1992Nov6.195407.2593@perle.UUCP>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uunet.ca!geac!censor!perle!bob

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uunet.ca!geac!censor!perle!bob
From: bob@perle.UUCP (Bob Pickles)
Subject: DOS BIOS calls in OS/2
Message-ID: <1992Nov6.195407.2593@perle.UUCP>
Organization: Perle Systems Ltd.
Distribution: na
Date: Fri, 6 Nov 1992 19:54:07 GMT
Lines: 39