Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; You may customize this and other start-up templates;
- ; The location of this template is c:\emu8086\inc\0_com_template.txt
- org 100h
- .stack
- .data
- .code
- mov dx, @data
- mov ds, dx
- proc main
- mov dx, @data
- mov ds, dx
- mov al, 12h
- mov ah, 0 ; set graphics video mode.
- int 10h
- mov ax, 1 ;shows mouse cursor
- int 33h
- Next:
- mov ax, 3 ;get cursor positon in cx,dx
- int 33h
- call putpix ;call procedure
- jmp Next
- mov ah,4ch
- int 21h
- mov ah, 4ch
- int 21h
- endp main
- ;======================================================
- ;procedure to print
- putpix proc
- mov al, 13 ;color of pixel
- mov ah, 0ch
- shr cx,1 ; cx will get double so we divide it by two
- int 10h ; set pixel.
- ret
- putpix endp
- ;======================================================
- end main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement