Task

Create a window and draw a pixel in it, subject to the following:

  the window is 320 x 240
  the color of the pixel must be red (255,0,0)
  the position of the pixel is x = 100, y = 100
 
        .model  tiny
        .code
        org     100h
 
start:  mov     ax, 0013h       ;set 320x200x8 graphic screen
        int     10h
        push    0A000h          ;point to graphic memory segment
        pop     es
        mov     byte ptr es:[320*100+100], 28h  ;draw bright red pixel
 
        mov     ah, 0           ;wait for keystroke
        int     16h
        mov     ax, 0003h       ;restore normal text mode screen
        int     10h
        ret                     ;return to OS
        end     start
 