flat assembler
Message board for the users of flat assembler.
Index
> DOS > Print Image Vga 16 color |
Author |
|
DJ Mauretto 15 Mar 2007, 14:18
Hi, here there is a simple example to print image in Vga standard mode
16 color 4bit.. Bye |
|||
15 Mar 2007, 14:18 |
|
Japheth 16 Mar 2007, 06:09
> - It is not a "standard" VGA mode, but a highly deprecated one 640*350,
for me it works in QEMU only, but not natively Then your graphics card is not VGA compatible, since mode 10h is a "native" EGA mode (for EGAs with 64k memory this mode is limited to 4 colors, however) and VGA comprises EGA. |
|||
16 Mar 2007, 06:09 |
|
DOS386 16 Mar 2007, 06:58
Quote: your graphics card is not VGA compatible Possible ... this mode is very old nevertheless ... even more when considering the MMX code used Does it work for you ? _________________ Bug Nr.: 12345 Title: Hello World program compiles to 100 KB !!! Status: Closed: NOT a Bug |
|||
16 Mar 2007, 06:58 |
|
Japheth 16 Mar 2007, 08:53
> Does it work for you ?
Yes. (NVidea FX 5200) |
|||
16 Mar 2007, 08:53 |
|
DJ Mauretto 16 Mar 2007, 12:43
ok, here there is a 640*480 simple example to display image to the screen in
Vga Standard mode 12h without MMX minimal 386 cpu. Image file is formatted with index to the palette from 0 to 0fh , 16 colors 4bit. |
|||
16 Mar 2007, 12:43 |
|
DJ Mauretto 16 Mar 2007, 19:51
Last example with 8086 code
|
|||
16 Mar 2007, 19:51 |
|
rugxulo 16 Mar 2007, 21:29
Japheth wrote: > - It is not a "standard" VGA mode, but a highly deprecated one 640*350, I've heard that some newer video cards don't support EGA at all (don't ask me why)! It's SO annoying, IMO, when backwards compatibility is dropped because of the lame-o "we don't need it, no one uses it, it's old" crapola. Even if your video card supports it, you also need a monitor that allows it, plus an OS that allows it (grrr, Vista supposedly borks on DOS gfx proggies, e.g. Hugi compo). Thank God for emulation (DOSBox, QEMU, BOCHS, etc). EDIT: Just FYI, all three (DRAW, DISPLAY, 8086) work on my Win XP Home SP2 (P4) w/ ATI RAGE128 (VESA 2.0). However, under DOSBox 0.70 on the same cpu, all work except DRAW (MMX version). Funny that the 8086 version is 316 bytes (today is 3/16) but the MMX version is 286 bytes (but needs a Pentium w/ MMX). Oh, and it'd be nicer if you could specify the raw file via cmdline (really easy to implement). |
|||
16 Mar 2007, 21:29 |
|
DOS386 17 Mar 2007, 05:54
Quote: is a 640*480 simple example to display image to the screen in Quote: Last example with 8086 code COOL Both examples do work on my EGA-incompatible card. Add to "official" examples please Quote: Vista supposedly borks on DOS gfx proggies, e.g. Hugi compo). Thank God for emulation Thanks God for BOCHS and QEMU on DOS ... rest is for the Devil _________________ Bug Nr.: 12345 Title: Hello World program compiles to 100 KB !!! Status: Closed: NOT a Bug |
|||
17 Mar 2007, 05:54 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.