32bit Video

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
jinksys

32bit Video

Post by jinksys »

I need to manipulate the video card in 32bit mode. Anyone
have any info/links about the VGA CRTC etc? I really dont
feel like writing a vm86 monitor and would rather stay in
32 bit land.
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:32bit Video

Post by Candy »

jinksys wrote: I need to manipulate the video card in 32bit mode. Anyone
have any info/links about the VGA CRTC etc? I really dont
feel like writing a vm86 monitor and would rather stay in
32 bit land.
search for tauron VGA utilities, source for manipulating VGA.

PS: vga doesn't go above 640*480. Try VBE2/3 for that.
srg

Re:32bit Video

Post by srg »

If you can find a copy, get Programmers Guide to the EGA and VGA Cards or even better Programmers Guide to the EGA, VGA and SuperVGA Cards both by Richard F. Ferraro. They are excellent.

The snag is that these books are rarer than rocking horse c**p.

BTW vga is 640x480 16 colour, 320x200 256 colour.

I was looking at the VBE 3 spec and the Pmode part, to me at least, books rubbush, I think v86mode is the only way for that BIOS.

srg
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:32bit Video

Post by Pype.Clicker »

afaik, you can get info about VGA registers through the HardWareVga page of the FAQ and Christopher Giese's OS has code to set up 320x200x256 using ports only... need to check the info. brb with links.
jinksys

Re:32bit Video

Post by jinksys »

thanks for the replies,
although I think my question was asked wrong.
Im not that interested in graphics, Im mainly
interested in text mode right now.
Ozguxxx

Re:32bit Video

Post by Ozguxxx »

So you want to create your own fonts?
jinksys

Re:32bit Video

Post by jinksys »

nope.
At the moment I know how to add text by directly writing to the
video card's framebuffer, but I want to scroll text, change text
modes, etc without using the BIOS. Hopefully this clarifies my
question
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:32bit Video

Post by Pype.Clicker »

well, you have an option for hardware-assisted scrolling that consist of using the CRT start offset register from the VGA: Just tell it that your screen starts 160 bytes further than 0xB8000 and you've scrolled one line down. When the whole first screen has disappeared, quickly copy what you have on the "bottom" half back on the 'top half' and you're ready for 25 more scrolls.

Note that it only works if you can afford 8K for one console (which means you can have only 2 physical consoles instead of 4 otherwise in the 16K of text VRAM)
Post Reply