6845 vid controller registers

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
slacker

6845 vid controller registers

Post by slacker »

is ther a website that details the individual registers of the keyboard controller?


/* void update_cursor(int row, int col)
    * by Dark Fiber
    */
   void update_cursor(int row, int col)
   {
      USHORT   position=(row*80) + col;

      // cursor LOW port to vga INDEX register
      outb(0x3D4, 0x0F);
      outb(0x3D5, (UCHAR)(position&0xFF));
      // cursor HIGH port to vga INDEX register
      outb(0x3D4, 0x0E);
      outb(0x3D5, (UCHAR)((position>>8)&0xFF));
   }
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:6845 vid controller registers

Post by Pype.Clicker »

err .. 3D4 and 3D5 are VGA registers, and aren't related to the keyboard at all ...
slacker

Re:6845 vid controller registers

Post by slacker »

yea thats what i meant...look at subject
i need a site that has infor about the 6845 video controller and its registers..
Peter_Vigren

Re:6845 vid controller registers

Post by Peter_Vigren »

But why did you include code for moving the cursor in your post? *confused*
slacker

Re:6845 vid controller registers

Post by slacker »

so that people saw the registers i was talking about in the code...
Peter_Vigren

Re:6845 vid controller registers

Post by Peter_Vigren »

To quot Pype:
Pype.Clicker wrote: err .. 3D4 and 3D5 are VGA registers, and aren't related to the keyboard at all ...
The registers you are talking about is NOT in the code. You are talking about the keyboard registers. Not the VGA registers shown in the code.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:6845 vid controller registers

Post by Pype.Clicker »

http://web.inter.nl.net/hcc/S.Weijgers/ ... vgareg.htm

there are plenty other sites like that ... try a g00gle search ;)
Post Reply