🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#2727
From: Ville K{rkk{inen
Date: Fri, 19 Oct 1990 20:20
18 lines
1269 bytes
Organization: Royal Institute of Technology, Stockholm, Sweden

I'm trying to access the Int 10 Function 13 ( Write string in teletype mode )
from Microsoft C 5.10. Everything has worked out fine so far, but today I found
out that the calling convention requires the offset of the string to be stored
in the BP register ! (BasePointer actually).

Now I wonder, is there a way to set the BP from C, or do I have to write a
.asm-hack that first saves the BP before the actual call, and then restores
it.(Which if I'm not wrong requires an update to MSC 6.0)

Any comments appreciated !

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
----- We are confronted with vaste quantities of plastic people. F Zappa ------
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Ville.
Technical Details
Message-ID: <1990Oct19.202013.28397@nada.kth.se>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!kth.se!cyklop.nada.kth.se!news

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!kth.se!cyklop.nada.kth.se!news
From: d87-vik@dront.nada.kth.se (Ville K{rkk{inen)
Newsgroups: comp.os.msdos.programmer,alt.msdos.programmer
Subject: Int 10H Function 13H - How Do I access BP from C ?
Message-ID: <1990Oct19.202013.28397@nada.kth.se>
Date: 19 Oct 90 20:20:13 GMT
Sender: news@nada.kth.se (Mr News)
Lines: 18