NASM Forum > Programming with NASM

I can write to video memory, but one prob!

(1/1)

Wannabe Developer:
I'm sure you're probably getting a little tired of my constant posts by now, but please bear with me. I recently came across some code that writes to video memory. I mad a binary COM file from it and launched it, and it works! Well, actually what happens is the screen goes black and red horizontal lines go across it. Perchance there's someone who'd tell what exactly is happening? I really want to make sure I know because I don't want to accidentally destroy my computer!

Keith Kanios:
Review THIS OSDev.org Wiki Article.

Wannabe Developer:

--- Quote from: Keith Kanios on March 03, 2011, 04:25:11 AM ---Review THIS OSDev.org Wiki Article.

--- End quote ---

Great resource BUT from what i saw it was in C. What I'd like to know is how you can go about that safely in NASM. Also, it is possible to just print pixels on the command prompt window?

Keith Kanios:
Yes, it is safe.

Try THIS tutorial.

David Stone:
Yeah this tutorial is very helpful. I used it,

Navigation

[0] Message Index

Go to full version