Page 1 of 1

cursor moving in pmode

Posted: Fri Dec 07, 2001 12:44 am
by user4
the codes I tent to move cursor doesn't works,what's wrong?
;bx=position/nasm
   mov al,0eh
   out 3d4h,al
   mov al,bh
   out 3d5h,al
   mov al,0fh
   out 3d4h,al
   mov al,bl
   out 3d5h,al
thanks

Re: cursor moving in pmode

Posted: Sat Dec 08, 2001 2:32 am
by user4
I got it! by using 'out dx,ax' instead 'out 3d4h,al',all things OK.
but I got another question at the same time:how can I scroll the screen?

Re: cursor moving in pmode

Posted: Sat Dec 08, 2001 8:39 pm
by user4
blame me for the careless question:-)
I wrote a subroutine and now it works.

Re: cursor moving in pmode

Posted: Sun Dec 09, 2001 12:38 am
by df
to scroll the screen you have to physically move the memory. do a block memory copy.

Re: cursor moving in pmode

Posted: Sun Dec 09, 2001 2:57 am
by user4
yes, i got it. thanks.
btw,how can i get the position of current cursor?
i tried the port 3d4 & 3d5 but failed.