How do I Create my own thread handler

Started by www.:).com, November 05, 2010, 07:53:14 PM

Previous topic - Next topic

www.:).com

So what you are saying is each pixel I write to is stretched out to fill 8 bits in video memory?

dedndave

in video mode 13h, each pixel takes one byte
what video mode are you using ?

MichaelW

Quote from: www.:).com on November 07, 2010, 05:59:22 PM
So what you are saying is each pixel I write to is stretched out to fill 8 bits in video memory?

Each pixel that you specify in the cursor masks is expanded to match the bits per pixel for whatever display mode is active.

eschew obfuscation

www.:).com

Yes, I use model 13h. So when the memory actually gets written to the screen it is stretched side to side?

dedndave

well - i wouldn't use the term "stretched"
it merely converts or translates bits into color values

www.:).com

Well yea, but the term stretched is what i use do describe what it looks like on the screen.  :dance:

MichaelW

Quote from: www.:).com on November 07, 2010, 03:00:06 PM
Well i'm wondering why it puts a black pixel next to it.

In case you have not already figured this out, the reason is that your instruction:

mov es:[di], ax      ; set the pixel

Is setting two bytes, one with the value from AL (=1), and one with the value from AH (=0). An easy fix would be:

mov es:[di], al      ; set the pixel

eschew obfuscation

www.:).com

O well that was stupid of me, thanks for correcting me.  :U