flat assembler
Message board for the users of flat assembler.

Index > OS Construction > Print to screen without BIOS/UEFI/VGA?

Author
Thread Post new topic Reply to topic
dstyl



Joined: 23 Jul 2015
Posts: 67
dstyl 10 Mar 2019, 08:51
Is it possible to set up the screen memory after the cpu is already in protected mode without the use of the bios/uefi or vga stuff? Just so the cpu writes to the screen memory (after set up).
Thanks a lot in advance.
Post 10 Mar 2019, 08:51
View user's profile Send private message Reply with quote
DimonSoft



Joined: 03 Mar 2010
Posts: 1228
Location: Belarus
DimonSoft 10 Mar 2019, 10:38
Sure. You just need to have documentation for your particular video card and find out which sequence of commands sent to it leads to the state you expect. Which might not be an easy thing (for example, even Intel HD Graphics documentation is quite a large set of information) and it might also be a good idea to have it separate from the kernel, as a driver.
Post 10 Mar 2019, 10:38
View user's profile Send private message Visit poster's website Reply with quote
N-LG



Joined: 14 Feb 2019
Posts: 40
Location: france
N-LG 10 Mar 2019, 22:34
there is a VESA operating mode that allows you to use it when you are in protected mode (since VESA 3.0) but to have tried it, I can say that with some card it does not work well

you can initialize a vesa video mode in real mode and use the linear frame buffer (alas it does not work for all video mode or all cards) in protected mode to change the display

personally I use a temporary return in real mode to use VESA (to have information on video modes, change video mode, change memory bank, ...) and until now it did not pose any problem
Post 10 Mar 2019, 22:34
View user's profile Send private message Reply with quote
dstyl



Joined: 23 Jul 2015
Posts: 67
dstyl 14 Mar 2019, 14:57
Thanks a lot for the help, i have a device with an powervr gx6430 and i dont know if it is vga compatible thats why i just planned to write to the screen using the cpu.
But i will check as adviced if i can find some documentation about it.
Post 14 Mar 2019, 14:57
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8367
Location: Kraków, Poland
Tomasz Grysztar 14 Mar 2019, 15:17
Please take a look at the classic MODES.ASM example. This is what I used as a template for VGA mode switching routines when I was trying my own OS development back in 1999.
Post 14 Mar 2019, 15:17
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.