I’ve been working on an operating system for some time now, written in assembly. Everything has been running fine so far except one thing. I’m trying to quickly fill the screen with a background color, instead of looping through each pixel and changing its color(which takes quite a while). Is there any code capable of doing such a task?
Share
To answer the question “How to color screen” in context “I’ve been working on an operating system”… Overwrite the framebuffer with desired color.
How to achieve this depends on if you’re working in real mode or protected mode. For example in real mode with graphics mode 13h, you can access the framebuffer at address A000h. For information about graphics in protected mode see this link at osdev.org wiki.