Author Topic: I can write to video memory, but one prob!  (Read 15171 times)

Offline Wannabe Developer

  • Jr. Member
  • *
  • Posts: 9
I can write to video memory, but one prob!
« on: March 03, 2011, 03:56:15 AM »
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!

Offline Keith Kanios

  • Full Member
  • **
  • Posts: 383
  • Country: us
    • Personal Homepage
Re: I can write to video memory, but one prob!
« Reply #1 on: March 03, 2011, 04:25:11 AM »

Offline Wannabe Developer

  • Jr. Member
  • *
  • Posts: 9
Re: I can write to video memory, but one prob!
« Reply #2 on: March 03, 2011, 04:45:30 AM »
Review THIS OSDev.org Wiki Article.

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?

Offline Keith Kanios

  • Full Member
  • **
  • Posts: 383
  • Country: us
    • Personal Homepage
Re: I can write to video memory, but one prob!
« Reply #3 on: March 03, 2011, 06:10:15 AM »
Yes, it is safe.

Try THIS tutorial.

Offline David Stone

  • Jr. Member
  • *
  • Posts: 4
Re: I can write to video memory, but one prob!
« Reply #4 on: March 26, 2011, 06:42:25 AM »
Yeah this tutorial is very helpful. I used it,