1

How to draw a pixel in VESA graphic mode?

I am trying interrupt 10h function 0ch, but it’s not working. What is wrong?

(Note: I wrote this code in NASM syntax and tested it with qemu)

; Code:
Mov ax, 4F02h
Mov bx, 0105h ; 1024x768 pixels
Int 10h

Mov ah, 0ch ; Draw pixel function
Mov cx, 2           ; column
Mov dx, 3           ; row
Mov bh, 0    
Mov bl, 00000101b   ; colour
Int 10h

Jmp $            ; jump forever
Times 510-($-$$) db 0
Dw 0xaa55