home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.asm.x86      Ahh, the lost art of x86 assembly      4,675 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 3,446 of 4,675   
   Rick C. Hodgin to All   
   Re: a cursor you move with arrow keys   
   18 Jun 18 13:03:58   
   
   From: rick.c.hodgin@nospicedham.gmail.com   
      
   On 6/17/2018 6:00 AM, bilsch01 wrote:   
   > I am writing to screen buffer at segment 0xb800.  A cursor is usually a   
   > horizontal or vertical bar in a text cell together with the character in the   
   > cell.  I'm hoping one is available (from BIOS?) - that I can move with arrow   
   > keys.  How do I get one?  TIA. Bill S.   
      
   It's unusual to want to do this type of editing directly to the video   
   screen buffer.  A more common solution is to use logic to render to the   
   video buffer from an off-screen buffer which contains the actual thing   
   being updated.  You then issue updates to the off-screen block, and then   
   issue re-render updates to update the display.   
      
   In this way, the cursor will track with your off-screen buffer, and the   
   rendering algorithm will determine when scrolling is needed, when a full   
   redraw is needed, where the cursor should be for horizontal scrolling,   
   etc.   
      
   BIOS will use the INT 10h interrupts, and also INT 16h interrupts.   
      
   But even with BIOS, you still have the ability to wield data within your   
   app without regard to BIOS I/O.  The x86 is basically a compute engine.   
   It doesn't need video at all, but is useful for people.   
      
   -----   
   What exactly is it you're trying to do?  There may be more standard   
   solutions.   
      
   --   
   Rick C. Hodgin   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca