You can draw simple pictures with it. Use the left mouse button to draw and the right button to clear the screen. To exit, simply move the cursor to the origin (0,0) of the screen.
I thought it would be a good example program to post.
Code: Select all
;ASM PAINT - By Gemino Smothers
;
;set screen mode
mov ah,00
mov al,0F
int 10
;display cursor
mov ax,01
int 33
;return cursor position and button status
mov ax,03
int 33
;if left buttun down then draw the pixel
cmp bx,01
jne 0123
push cx
push dx
dec cx
dec dx
mov ah,0C
mov al,01
mov bh,00
int 10
pop cx
pop dx
;if right button then reset the screen
cmp bx,02
je 0100
;loop
cmp cx,00
jne 010B
cmp dx,00
jne 010B
;return screen mode
mov ah,00
mov al,02
int 10
;end program
mov ax,00
int 21