Questions tagged [vga]

Anything related to Video Graphics Array (VGA) video card and related standards. Usually used to tag questions about VGA compatible hardware (VGA connectors, cables, monitors, etc.) or VGA specifications (VGA resolutions, VGA video modes, etc.)

Anything related to Video Graphics Array (VGA) video card and related standards. Usually used to tag questions about VGA compatible hardware (VGA connectors, cables, monitors, etc.) or VGA specifications (VGA resolutions, VGA video modes, etc.).

See the VGA Wikipedia page.

257 questions
2
votes
1 answer

How to run Linux (Ubuntu) in VGA text mode (mode 03 = 80x25)?

I am porting DOS app to Linux, and I need to do it in pure text mode, not graphics pretending to be text. Linux when booting for some time is running in VGA mode 03, then it is switching to graphics mode, or at least is changing font. When I use…
Pablo
  • 29
  • 2
2
votes
2 answers

Why is the bitwise shift needed for VGA colors?

I’ve been following the Bare Bones kernel guide at https://wiki.osdev.org/Bare_Bones, and I don’t understand these methods. Could someone explain why the bitwise operators in the methods are necessary? Thanks in advance! enum vga_color { …
Ramsey Alsheikh
  • 179
  • 1
  • 1
  • 7
2
votes
1 answer

Video card programming without BIOS interrupts

Currently, I need to create custom OS to test some ideas. My question is: How to set resolution of video card without interrupts? My system supports multiboot standard and kernel starts in protected mode, so I probably cannot use BIOS services. I…
nintyfan
  • 386
  • 3
  • 16
2
votes
1 answer

Do VGA cards read in the pixel buffer when the vertical retrace bit is cleared?

I'm working on a game for DOS which uses video mode 13h. I've always had issues with screen tearing, but until today I've been ignoring the problem. I assumed it was going to be a challenge to fix since it would involve delaying pixel writes for…
bad
  • 939
  • 6
  • 18
2
votes
1 answer

writing directly to video memory

I heard that int 10h, ah = 0Ch is pretty slow, and to get a reasonable speed I would need to go to the memory and put the value into the pixel I want to, I set my video mode to be 13h with int 10h. the call to change the video mode: mov ah , 0 mov…
Guy Sudai
  • 217
  • 2
  • 12
2
votes
1 answer

Printing message onto the screen using vga

I'm trying to write a function which will print message onto the screen using VGA text mode buffer. This is function which prints a single char: void putc(uint8_t c, enum Color term_color) { uint8_t *vidptr = (uint8_t*)0xB8000; *vidptr =…
msk
  • 141
  • 1
  • 3
  • 11
2
votes
2 answers

iphone, ipad VGA External Display - tvOutManager

i used all the examples and source code out there for displaying application content to external VGA display. while playing video in inside of the application am getting bellow thing in external device. any suggestion.... am i missing somthing.. but…
nik
  • 2,289
  • 6
  • 37
  • 60
2
votes
0 answers

What is wrong with this VGA driver code? I'm attempting to enter into Mode X, can only set certain pixels

I've been tinkering with this C# code for about a week now (intended to be used with the COSMOS operating system). I'm attempting to enter into Mode X, and clear the screen to a certain desired color. What actually happens is I wind up with colored…
Dave B.
  • 47
  • 6
2
votes
2 answers

mirroring iPad screen to VGA

I tried mirroring the screen of a simple new TabBarApplication with iphoneos-screen-mirroring for iPad: http://code.google.com/p/iphoneos-screen-mirroring/ Everytime (also without including the code) if I try to activate the TV-out in Simulator mode…
Andreas Prang
  • 2,187
  • 4
  • 22
  • 33
2
votes
1 answer

VGA Programming in C: Getting the x, y coordinates from and offset

I'm programming the for the 256 color VGA in C. The screen size I have is 320*200 so based on that assumption I made my plot pixel function as follows: void plot_pixel(int x, int y, byte color){ int offset; offset = (y<<8) + (y<<6) + x; …
Pablo Estrada
  • 3,182
  • 4
  • 30
  • 74
2
votes
0 answers

VGA Programming in C: Drawing pixel on mouse click

I´m working on a small Microsoft paint-like program to learng VGA 256 color programming on C. I have been able to plot a pixel when the user clicks on the screen and keep ploting the pixels while the mouse button is pressed. However if I move the…
Pablo Estrada
  • 3,182
  • 4
  • 30
  • 74
2
votes
0 answers

assembly graphics to draw stack and queue

I need to draw (print) a stack and queue using assembly language. Can anyone suggest me the code using VGA graphics? I tried to modify the code of drawing(printing) a rectangle. Here's what I have done: DATA SEGMENT H DW 150 W DW 30 …
2
votes
2 answers

Difference between VGA and SVGA programming in C and Assembly

I´m starting to learn about low level graphics programming using c with inline assembly. I have found good resources on how to do VGA programming but I need to learn about SVGA. I cannot find that many resources about SVGA and I´m still not clear…
Pablo Estrada
  • 3,182
  • 4
  • 30
  • 74
2
votes
1 answer

How to get a rgb picture into FPGA most efficiently, using verilog

I am trying to write a verilog code for FPGA programming where I will implement a VGA application. I use Quartus II and Altera DE2. At the moment, my aim is to get a 640x480 rgb image during compilation (method doesn't matter as long as it works…
ozgeneral
  • 6,079
  • 2
  • 30
  • 45
2
votes
2 answers

Enter graphics mode without interrupts in assembly

How can I enter graphics mode (mode 13h) without using BIOS interrupts? I'm targeting 32-bit protected mode where BIOS interrupts aren't available. I found a tutorial on web, but it only gives me hints such as VGA registers. I want to know how VGA…