Video resolutions on FreeDOS
Вставка
- Опубліковано 3 вер 2023
- Recently, two people asked me pretty much the same question: Can FreeDOS support video modes above 800x600.
I think I should point out that "DOS" doesn't really "do" video modes. That's going through the hardware. DOS isn't like other operating systems that have a Hardware Abstraction Layer. FreeDOS really just does the disks. DOS programs typically access the hardware on their own. So really the question should be "How can I write programs that do video above 800x600?"
Let's start a new program that shows the color palette.
Visit our website
www.freedos.org/
Join us on Facebook
/ freedosproject
Follow us on Mastodon
fosstodon.org/@freedosproject
Consider supporting me on Patreon
/ freedos
And don't forget to Like and Subscribe!
Standard comment rules apply. - Наука та технологія
Another interesting topic may be how to switch between text modes with the MODE command.
On ET4000 ISA 1 mb vram i used text mode with 80x60, but today i use 80x25 with 8x16 character or 80x50 with 8x8 character using a bios function.
I like that effects, seems like something out of a demoscene
Glad you like it!
I think it's valid to ask "how to run DOS in a higher resolution" IIRC as long as the video mode supported bios print (int 10? i think) the video mode was 'supported' under dos, to varrying degrees of success.
I have a memory of running dos in the 132x50 mode. Obviously this mode would not be preserved upon lanching a program and exiting, and most command line text-mode applications used their own text drivers and didn't talk to the bios because... well it's slow... so you got little bennefit to it.
I got bragging rights within my cohort of 13 year old friends, that was enough utility.
is there a mastodon program for freedos? great video as always.
Yes! It's called DOStodon (thanks, SuperIlu!) and you can find it listed on the "official Mastodon apps" page: joinmastodon.org/apps
Here's the direct link: github.com/SuperIlu/DOStodon
I spend time writing embedded now so this is great to use this OS for that
DOS (and FreeDOS) used to be used in a lot of embedded systems in the late 1990s/early 2000s. Less so now (Linux is used almost everywhere) but you still find DOS in a few places. Glad you're using it. 🤓
Thanks for the video! really useful :D
1280x1024, 1366x768 and 1920x1080 anyone? I remember there was a VESA mode for the first one, but not sure how to use the second and third ones from DOS.
SciTech Display Doctor has entered the chat
What about Mode X resolutions?
Mode X is 256 colors with 320×240 resolution. Sorry, I don't see 320×240 @ 256 listed in the OpenWatcom C Library Reference (see pg. 989) so there isn't a definition for it in the OW compiler.
Coool.
What about different color depths? Could you go as high as 24-bit for instance?
I would also like to know how difficult that might be. I would assume you could just write your own driver and do whatever you want, as long as you had the hardware to back that up. Something like using FreeDOS on a modern computer and having a modern discrete graphics card would be rather interesting. Maybe even porting a driver from Linux could work.
@@anon_y_mousse I would love to see a tutorial series on driver coding! I might never need it, but I think I would learn a lot about many topics just going through the process.
@@Falstad88 Especially for FreeDOS would be quite interesting.
I made a program that use the VBE 3 BIOS of a Geforce 4 AGPx4 with 64 mb vram with a resolution of 800x600x32 and to draw some letter i use the 8x8 font of the BIOS to draw 4 pixel for one bit of the font so on the screen we have 16x16 pixel for one location. It have little bugs in the edges, but it is ok.
Video modes with 24 bit color need to write 3 bytes for one pixel, or one instruction for two bytes and one instruction with one byte. There is no instruction to write/load three bytes at once. There are instructions for one, two and 4 bytes. In video modes with 32 bit color we can use one instruction for one pixel and for address calculation of a location it is more easy to use video modes with 32 bit per pixel.
Cool video, had it all.
Is there any possibility to use a camera to create video files, not for displaying the video, of course, but only for recording? "for educational projects"
Could this run Windows 3.11?
Jeremy Davis (kernel developer) is working on an update to the kernel that will run Win311. Right now, you can run Windows 3.0 in standard mode.
With my last PC i used a Geforce 7950 PCIe VBE3 BIOS with a 28 LCD monitor graphic mode 1920x1200x32 wide screen 16: 10 aspect ratio booting MS DOS 6.22 from 2 gb USB stick(FAT16 format).
Were you actually able to use the full features of the GeForce from DOS? No classic DOS application used 1920x1200x32, unless you wrote your own that accessed the hardware directly.
@@freedosproject Not all features, but with the VBE 3 Bios we have a modelist with mode numbers. Take a look into the public document: vbe3.pdf.
VBE3 support linear framebuffer, triple buffering, steroskopic glasses, refreshrate controlled video modes for analog CRT-monitor and newer graphic cards have mode numbers for wide screen resolution 16:9 and 16: 10 aspect ratio. At first i used it with Geforce 4 TI 4200 AGPx4 64 MB vram with 19 crt with 96 khz capacity in 1024x760x32 with 100 hz refreshrate using triple buffering in the lknear frame buffer with 16 bit Big Real Mode of the CPU AMD k6-2 from MS DOS 6.22.
it would be damn cool if text editor software allow to change resolution 1024x768 as it will allow to display more text thus make it easier to work on
the text editor uses character mode aka text mode, not bitmap mode
A graphical text editor in DOS is technically possible and could implement this, but is largely pointless.
Laaca's Bloček (DOS) runs in graphical mode to support unicode. www.laaca.borec.cz/blocek/
2 comments are missing. Including my one.
I don't see anything in "Held for review." I didn't delete them.
@@freedosproject I believe you, but only 15 comments are visible from the mentioned 17 comments. I would suggest contacting YT and asking them what that is about. Unfortunately, this is not the first time that the spam filter has simply made comments disappear.
@@OpenGL4ever I do sometimes delete comments if they offensive (and slip by the automated filters) or otherwise trolling.
@@freedosproject I was talking about different graphic libraries with different compilers in that comment.