>this shouldn't cause a triple fault, but the above
>line should actually be:
>
>cursor = (row - 1) * 160 + (col - 1) * 2;
>Remember, there's 160 bytes to a line, not 80.
I use that same offset algorithm in a Put_Char() function and it works beautifully so it's correct
>Is there a possibility the string isn't \0 terminated?
Well, I always use the function like 'Put_String_At(1, 1, "Hello, World!");' or something similar.
>If Get_Text_Color(); does something more than
>a "return colour;" then the triple fault may
>actually be caused by that function... although,
>I doubt it.
No, it just returns (foreground | background);
>Positive? Have you enabled paging? Perhaps the
>video buffer isn't in your page table?
I have other video output functions and they all work fine. This is the only one that doesn't.
Any other suggestions?