I don't know much asm so I want to know how you draw a pixel on the screen (you can also provide the x and y positions). I have seen this exaple in an asm tutorial but I can't find that.

BTW will the code of drawing pixel only work with DOS?