cursor doesnt move...am i missing something?
Posted: Fri Aug 03, 2007 7:42 pm
hi
i've started coding a minimal kernel in hla (http://webster.cs.ucr.edu/)..i have a routine to write to the screen (in pm, i.e. writing to video memory) and i also have a cursor varibale to track the position of the next character to be printed to screen. now i was trying to write the move_cursor procedure and found that it doesnt work:
but no matter how often i call this routine, the cursor always stays at the same position. before switching to pm i made a teletype output with an interrupt which left the cursor somewhere in the middle of the display so i can clearly see it, but my procedure doesnt make any changes to that position? is there a trick? (the cursor is NOT blinking..might that mean it is frozen or something and needs activating via some special port first???)
thanks
martin
i've started coding a minimal kernel in hla (http://webster.cs.ucr.edu/)..i have a routine to write to the screen (in pm, i.e. writing to video memory) and i also have a cursor varibale to track the position of the next character to be printed to screen. now i was trying to write the move_cursor procedure and found that it doesnt work:
Code: Select all
procedure move_cursor;
begin move_cursor;
pusha();
pushf();
mov(cursor,cx);
mov(cx,dx);
shr(8,dx);
mov($3D4,eax);
out(eax,14);
mov($3D5,eax);
out(eax,dx);
movzx(cl,dx);
mov($3D4,eax);
out(eax,15);
mov($3D5,eax);
out(eax,dx);
popf();
popa();
end move_cursor;
thanks
martin