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.
  • Наука та технологія

КОМЕНТАРІ • 39

  • @AlexandreJasmin
    @AlexandreJasmin 9 місяців тому +10

    Another interesting topic may be how to switch between text modes with the MODE command.

    • @maxmuster7003
      @maxmuster7003 8 місяців тому +1

      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.

  • @22joy
    @22joy 5 місяців тому

    I like that effects, seems like something out of a demoscene

  • @prozacgodretro
    @prozacgodretro 9 місяців тому +7

    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.

  • @TheNovum
    @TheNovum 9 місяців тому +6

    is there a mastodon program for freedos? great video as always.

    • @freedosproject
      @freedosproject  9 місяців тому +7

      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

  • @wherami
    @wherami 8 місяців тому +1

    I spend time writing embedded now so this is great to use this OS for that

    • @freedosproject
      @freedosproject  8 місяців тому +1

      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. 🤓

  • @coolestguy94
    @coolestguy94 9 місяців тому +1

    Thanks for the video! really useful :D

  • @amoledzeppelin
    @amoledzeppelin 2 місяці тому

    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.

  • @mystica-subs
    @mystica-subs 9 місяців тому +1

    SciTech Display Doctor has entered the chat

  • @DosGamerMan
    @DosGamerMan 9 місяців тому +3

    What about Mode X resolutions?

    • @freedosproject
      @freedosproject  9 місяців тому +5

      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.

  • @semuhphor
    @semuhphor 7 місяців тому

    Coool.

  • @borisrusev9474
    @borisrusev9474 9 місяців тому +3

    What about different color depths? Could you go as high as 24-bit for instance?

    • @anon_y_mousse
      @anon_y_mousse 9 місяців тому +1

      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.

    • @Falstad88
      @Falstad88 9 місяців тому +1

      @@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.

    • @anon_y_mousse
      @anon_y_mousse 9 місяців тому +1

      @@Falstad88 Especially for FreeDOS would be quite interesting.

    • @maxmuster7003
      @maxmuster7003 8 місяців тому +1

      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.

    • @maxmuster7003
      @maxmuster7003 8 місяців тому

      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.

  • @FloydMaxwell
    @FloydMaxwell 9 місяців тому

    Cool video, had it all.

  • @abdoukon6316
    @abdoukon6316 7 місяців тому

    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"

  • @DryPaperHammerBro
    @DryPaperHammerBro 4 місяці тому

    Could this run Windows 3.11?

    • @freedosproject
      @freedosproject  4 місяці тому

      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.

  • @maxmuster7003
    @maxmuster7003 8 місяців тому

    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).

    • @freedosproject
      @freedosproject  8 місяців тому

      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.

    • @maxmuster7003
      @maxmuster7003 8 місяців тому

      @@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.

  • @modology
    @modology 9 місяців тому +2

    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

    •  9 місяців тому +1

      the text editor uses character mode aka text mode, not bitmap mode

    • @zombie_pigdragon
      @zombie_pigdragon 9 місяців тому

      A graphical text editor in DOS is technically possible and could implement this, but is largely pointless.

    • @freedosproject
      @freedosproject  9 місяців тому +2

      Laaca's Bloček (DOS) runs in graphical mode to support unicode. www.laaca.borec.cz/blocek/

  • @OpenGL4ever
    @OpenGL4ever 9 місяців тому

    2 comments are missing. Including my one.

    • @freedosproject
      @freedosproject  9 місяців тому

      I don't see anything in "Held for review." I didn't delete them.

    • @OpenGL4ever
      @OpenGL4ever 9 місяців тому

      @@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.

    • @freedosproject
      @freedosproject  9 місяців тому

      @@OpenGL4ever I do sometimes delete comments if they offensive (and slip by the automated filters) or otherwise trolling.

    • @OpenGL4ever
      @OpenGL4ever 9 місяців тому

      @@freedosproject I was talking about different graphic libraries with different compilers in that comment.