cursor moving in pmode

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
user4

cursor moving in pmode

Post 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
user4

Re: cursor moving in pmode

Post 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?
user4

Re: cursor moving in pmode

Post by user4 »

blame me for the careless question:-)
I wrote a subroutine and now it works.
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re: cursor moving in pmode

Post by df »

to scroll the screen you have to physically move the memory. do a block memory copy.
-- Stu --
user4

Re: cursor moving in pmode

Post 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.
Post Reply