Date: Thu, 6 Jan 2000 19:13:42 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Martin Str|mberg cc: DJGPP Subject: Re: The endless int31 hooking debugging continued In-Reply-To: <200001061624.RAA06442@father.ludd.luth.se> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: dj-admin AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Thu, 6 Jan 100, Martin Str|mberg wrote: > > Or, better still, don't call any library functions from within the hook; > > then you don't need to worry about SS and ESP. > > Yes, but I need call cputs to get some debug information out. It should be easy to throw together a function that copies the string into a static buffer (together with any attribute byte, to make its tand out), then blits it all to video RAM. If you write this in assembly, you can forget about the stack.