Mail Archives: djgpp/2000/01/09/03:40:06
On Thu, 6 Jan 100, Martin Str|mberg wrote:
> > 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.
>
> Well, that's far over my head. I just want to be able to hook INT31
> and be able to get out some debug info (so I can see where the real
> code goes wrong).
How about using _farpokeb, then? It's inline assembly, and doesn't
use the stack. You could write the characters with it one by one.
Clumsy, but works.
Actually, you could even use the assembly instructions from _farpokeb
inlined in your code.
Or, simply remove the call to cputs and see if the crashes stop. If
they do, you know that this is the culprit. If they don't, it's
probably a good idea to find and correct the other problem(s) before
you actually do something useful with the hook.
- Raw text -