Skip to main content

All Questions

Tagged with
4 votes
1 answer
1k views

Using the CGA/EGA/VGA planar graphics modes

I have trouble to grasp how to use colors in CGA/EGA/VGA video graphics modes. The video modes I'm particularly interested in are 0Dh (EGA 320x200) and 12h (VGA 640x480). Both of these modes have 4 ...
MegaBrutal's user avatar
0 votes
1 answer
891 views

How do I color multiple pixels at the same time in x8086 assembly?

I'm using emu8086 on Windows 10 with VGA mode and 8-bit fixed RGBA pixel format, learning the basics of graphics and ASM just for fun. I found a way to draw one pixel at a time as shown in the code ...
AndrewGreen's user avatar
4 votes
1 answer
580 views

color palette not working on certain colors in VGA

I'm trying to set the VGA(640x480x16) color palette in assembler on DOSBox but specifically colors 6, 8-F don't change. I have tried using interrupts and directly through ports both work for other ...
Saar BS's user avatar
  • 43
0 votes
1 answer
135 views

How can I use 1920x1080x16M graphics or similar with 16M color in Kernel C++? (VGA)

For example, I'm using 320x200x256 graphics (VGA) unsigned char g_320x200x256[] = { /* MISC */ 0x63, /* SEQ */ 0x03, 0x01, 0x0F, 0x00, 0x0E, /* CRTC */ 0x5F, 0x4F, ...
Dev4fun's user avatar
0 votes
1 answer
99 views

Unidentifiable video modes listed as supported under DOSBox

I have noticed something rather strange messing around in DOSBox with VGA/VESA programming. Running the VESA BIOS function 01h, and then printing out the entries of the list pointed to by the value ...
user2649681's user avatar
-1 votes
3 answers
2k views

Batch file to get all available graphics cards, add them to variables and output them

Several laptops now have two graphics cards and i need some help on how to add them to variables and output them onscreen or text file on a batch file. On cmd i use wmic PATH Win32_videocontroller ...
Necro's user avatar
  • 1
1 vote
1 answer
816 views

VGA pixel grouping on STM32

I have some code that displays a single pixel on screen through VGA but am a bit stuck on how I could set multiple pixels on screen where I want them. I set up two Timers for Vertical Sync and ...
SirSpunk's user avatar
6 votes
1 answer
249 views

Mode X in Assembly x86-16, Why is plane 1 not printing and all the other planes are not in the correct order?

I am writing in TASM 3.0 on DosBox 0.74 and I am trying to write in Mode x (Tweaked 13h, unchained mode 13), but here you can see in the image, it's not quite right. It seems that plane 1 (second ...
Erik Gelfat's user avatar
1 vote
1 answer
1k views

Trouble drawing pixels in 640x480 16-color VGA mode

I am trying to draw a single red pixel in VGA video mode 12 in C. The code that I have written works as expected in video mode 13 (200p 256 colors). volatile char *video = (volatile char*) 0xA0000; *...
Dagoth Ur's user avatar
  • 123
2 votes
2 answers
300 views

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?...
Ramsey Alsheikh's user avatar
3 votes
2 answers
1k views

How do I print SVGA Info on the screen in tasm?

I am complete beginner to assembly, and graphics, any help would be appreciated. I got the svga info, but when i print it, it won't print anything. If anyone can explain why that would be great. Here ...
sean's user avatar
  • 65
13 votes
1 answer
21k views

Graphics mode in assembly 8086

I have a variable that is called average and in my DATASEG, it changes every time because the user enters a different input every time. What I want to do is to go to the graphics mode (VGA) and then ...
Tomer Cahal's user avatar
-3 votes
1 answer
2k views

What is the difference between "Video Graphic Adapter" and "Video Graphic Array"

I'm bit confused that what is the difference between "Adapter" and "Array". Some Graphics oriented expressions include the first and other the second. Such as: In VGA it's array: https://en.wikipedia....
András Illés's user avatar
4 votes
1 answer
2k views

How to find All Graphic Cards?

I used this code for finding graphic cards: ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT * FROM Win32_DisplayConfiguration"); string graphicsCard = ""; ...
Mohammad's user avatar
  • 527
0 votes
1 answer
1k views

VHDL - reading from VGA's framebuffer

I have an FPGA school project and I'm having some problems. We're using Digilent's Nexys2 board (Xilinx XC3S500E FPGA). We built a few controllers including VGA (640x480) with a framebuffer. At least ...
Luka's user avatar
  • 7

15 30 50 per page