Article View: comp.os.msdos.programmer
Article #2743Re: Int 10H Function 13H - How Do I access BP from C ?
From: Ville K{rkk{inen
Date: Sun, 21 Oct 1990 20:42
Date: Sun, 21 Oct 1990 20:42
21 lines
1617 bytes
1617 bytes
Forgive me for not mentioning that I am aware of the existance of functions intdos,int86 and int86x. In fact I am using all of these, each when appropiate. So I just like to add this to my original posting before I drown in answers like "RTFM- use int86x.....!!!". The problem is *NOT* as easy as might be seen in a quick first glance. I have had no problems whatsoever using other functions that requires a pointer to some data to be stored as a segment and and an offset in that segment. My problem is that Int10h - Func13h requires the offset of my data to be stored in BP,that is, the BasePointer. Note this,BP is a pointer, not a register defined in the REGS union. Some of my answers has been quite helpful though, I have been told of the existance of a "regpacks" struct defined somewhere in TC (I'm stuck to MS-C 5.1), where the BP was accessible in "r_bp". So my problem is not a "what to do" one, but a "how to do". Any hints to where I can find a similar structure defined in MS-C appreciated. So please have patience with me and give it a little thought. Ville.
Technical Details
Message-ID:
<1990Oct21.204236.22011@nada.kth.se>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!wuarchive!usc!ucsd!ucbvax!bloom-beacon!eru!hagbard!sunic!kth.se!cyklop.nada.kth.se!newsReferences:
<1990Oct19.202013.28397@nada.kth.se>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!wuarchive!usc!ucsd!ucbvax!bloom-beacon!eru!hagbard!sunic!kth.se!cyklop.nada.kth.se!news
From: d87-vik@dront.nada.kth.se (Ville K{rkk{inen)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Int 10H Function 13H - How Do I access BP from C ?
Message-ID: <1990Oct21.204236.22011@nada.kth.se>
Date: 21 Oct 90 20:42:36 GMT
References: <1990Oct19.202013.28397@nada.kth.se>
Sender: news@nada.kth.se (Mr News)
Organization: Royal Institute of Technology, Stockholm, Sweden
Lines: 21