Path: utzoo!attcan!uunet!cs.utexas.edu!usc!wuarchive!emory!hubcap!lsalomo From: lsalomo@hubcap.clemson.edu (lsalomo) Newsgroups: comp.os.msdos.programmer Subject: Re: Int 10H Function 13H - How Do I access BP from C ? Message-ID: <11237@hubcap.clemson.edu> Date: 29 Oct 90 21:26:09 GMT References: <488@caslon.cs.arizona.edu> Organization: Clemson University, Clemson, SC Lines: 19 From article <488@caslon.cs.arizona.edu>, by shack@cs.arizona.edu (David Shackelford): > TurboC has aliases to the actual registers defined, and you can directly write > to the hardware with a couple of restrictions. You cannot change the segment > registers, SP, or BP. Unfortunately, this means that the original poster > would not be able to use this anyway. Yes, you can change any of the registers, provided you disable interrupts before the modification, and enable them afterwards. I wrote a multi-tasking OS kernal whose dispatcher did this very thing... Cheers, Q - the "Q"uestor for knowledge (, a degree, etc.) lsalomo@hubcap.clemson.edu ibmman@prism.clemson.edu ibmman@clemson.clemson.edu ============================================================================= "Gee Wally, I think there's something wrong with the Beaver." =============================================================================