0

I'm following along with the Phil-Opp tutorials on creating an OS, and I'm trying to figure out how to control my display/screen, after having successfully gotten VGA output to work. How does one control the display? I'm assuming you have to write a driver... or do you write to specific memory locations like VGA? Would a crate like SDL2, Glium, or something else work on 'bare-metal'?

genpfault
  • 51,148
  • 11
  • 85
  • 139
Ben Gubler
  • 1,393
  • 3
  • 18
  • 32
  • 1
    It's not very clear from your question what you want to know. What does "control my display" mean? Are you trying to print text on the screen, draw shapes, change the resolution or refresh rate, turn the monitor on or off, etc. – Wesley Wiser Jun 06 '18 at 19:42
  • 1
    It may be better to contact the author of that blog directly. See [https://os.phil-opp.com/contact/](https://os.phil-opp.com/contact/). – nbro Jun 06 '18 at 20:44
  • @WesleyWiser draw shapes, other-than-VGA text, etc. – Ben Gubler Jun 07 '18 at 05:34
  • @nbro that's a good idea. I'll try it, but he doesn't have anything about drawing on the screen on the tutorials. – Ben Gubler Jun 07 '18 at 05:35
  • 1
    @BenGubler Perhaps start here? https://wiki.osdev.org/GUI – Wesley Wiser Jun 07 '18 at 15:01

1 Answers1

2

Assuming you are in a 8bpp VGA graphics mode (such as Mode 0x13), you can write pixels directly to the screen by writing to memory addresses 0xA0000 to 0xB8000.

Alex Boxall
  • 541
  • 5
  • 13