Xref: utzoo comp.os.msdos.programmer:1567 alt.msdos.programmer:2176 Path: 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 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.