🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #2775

Re: Int 10H Function 13H - How Do I access BP from C ?

#2775
From: Norbert Bladt
Date: Wed, 24 Oct 1990 13:00
29 lines
1606 bytes
trier@klah.INS.CWRU.Edu (Stephen C. Trier) writes:

>In article <1990Oct19.202013.28397@nada.kth.se> d87-vik@dront.nada.kth.se (Ville K{rkk{inen) writes:
>>Now I wonder, is there a way to set the BP from C, or do I have to write a
[story about setting BP deleted]

>>it.(Which if I'm not wrong requires an update to MSC 6.0)
Right w.r.t. the update !

>Use the functions int86 or int86x.  With these, you load your registers
Right !

[more text how to use int86 deleted].

>A C compiler that can't link to assembly is pretty poor.  MS-C can certainly
>do it from version 4.0 on; I imagine it's been supported since version 1.0.
You missed the point !
Inline assembly indeed requries MS-C 6.0 (and MASM or TASM I would guess).
I once saw a program named MASM.EXE which just called TASM with some additional
parameters, so you really don't need MASM.

But, try it with the int86 or int86x, first.

Norbert Bladt.
-- 
Please use this path as return address. DON'T USE THE RETURN PATH IN THE HEADER
Norbert Bladt, Ascom Autelca AG, Worbstr. 201, CH-3073 Guemligen, Switzerland
Phone: +41 31 52 92 14
EMail: ..!uunet!mcsun!chx400!hslrswi!bladt
Technical Details
Message-ID: <1051@aut.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcsun!cernvax!chx400!hslrswi!aut!nbladt
References: <1990Oct19.202013.28397@nada.kth.se> <1990Oct20.052836.19479@usenet.ins.cwru.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcsun!cernvax!chx400!hslrswi!aut!nbladt
From: nbladt@aut.UUCP (Norbert Bladt)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Int 10H Function 13H - How Do I access BP from C ?
Message-ID: <1051@aut.UUCP>
Date: 24 Oct 90 13:00:16 GMT
References: <1990Oct19.202013.28397@nada.kth.se> <1990Oct20.052836.19479@usenet.ins.cwru.edu>
Organization: Ascom Autelca AG, CH-3073 Guemligen Switzerland
Lines: 29