Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "" N Print "
- ; You may customize this and other start-up templates;
- ; The location of this template is c:\emu8086\inc\0_com_template.txt
- org 100h
- .model small
- .stack 100h
- .data
- msg db "Hello dosbox$"
- len db 0
- .code
- main proc
- mov dx, @data
- mov ds ,dx
- ;video mode setup
- mov ah,0
- mov al,12h
- int 10h
- ;draw a pixel
- L1:
- mov cx,100
- mov dx,50
- L11:
- mov ah,0ch
- mov al,12
- int 10h
- inc len
- inc dx
- cmp len,100
- jle L11
- L2:
- mov len ,0
- mov cx,150
- mov dx,50
- L3:
- mov len ,0
- mov cx,100
- mov dx,50
- L33:
- mov ah,0ch
- mov al,12
- int 10h
- inc len
- inc dx
- inc cx
- cmp len,100
- jle L33
- mov len, 0
- L34:
- mov ah,0ch
- mov al,12
- int 10h
- inc len
- dec dx
- cmp len,100
- jle L34
- mov ah, 9
- lea dx, msg
- int 21h
- mov ah, 4ch
- int 21h
- endp
- end main
- ret
Add Comment
Please, Sign In to add comment