OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 7:43 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: cursor moving in pmode
PostPosted: Fri Dec 07, 2001 12:44 am 
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


Top
  
 
 Post subject: Re: cursor moving in pmode
PostPosted: Sat Dec 08, 2001 2:32 am 
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?


Top
  
 
 Post subject: Re: cursor moving in pmode
PostPosted: Sat Dec 08, 2001 8:39 pm 
blame me for the careless question:-)
I wrote a subroutine and now it works.


Top
  
 
 Post subject: Re: cursor moving in pmode
PostPosted: Sun Dec 09, 2001 12:38 am 
Offline
Member
Member
User avatar

Joined: Fri Oct 22, 2004 11:00 pm
Posts: 1076
to scroll the screen you have to physically move the memory. do a block memory copy.

_________________
-- Stu --


Top
 Profile  
 
 Post subject: Re: cursor moving in pmode
PostPosted: Sun Dec 09, 2001 2:57 am 
yes, i got it. thanks.
btw,how can i get the position of current cursor?
i tried the port 3d4 & 3d5 but failed.


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: belliash, SemrushBot [Bot] and 68 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group