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
- start: jmp main
- x db ?
- y db ?
- proc h
- push cx
- mov ah, 0ch
- mov al, 14
- mov bh, 0
- mov cx, si
- int 10h
- inc si
- pop cx
- loop h
- ret
- h endp
- proc v
- push cx
- mov ah, 0ch
- mov al, 14
- mov bh, 0
- mov cx, si
- int 10h
- inc dx
- pop cx
- loop v
- ret
- v endp
- proc main near
- mov ax, 00h
- mov al, 13h
- int 10h
- ;h1
- mov si, 100 ;x
- mov dx, 31 ;y
- mov cx, 10
- call h
- ;v1
- mov dx, 31 ;y
- mov si, 100 ;x
- mov cx, 40
- call v
- ;v2
- mov dx, 31 ;y
- mov si, 110 ;x
- mov cx, 10
- call v
- ;h2
- mov si, 110 ;x
- mov dx, 41 ;y
- mov cx, 12
- call h
- ;v3
- mov dx, 36 ;y
- mov si, 116 ;x
- mov cx, 5
- call v
- ;v4
- mov dx, 41 ;y
- mov si, 122 ;x
- mov cx, 8
- call v
- ;h3
- mov si, 110 ;x
- mov dx, 49 ;y
- mov cx, 12
- call h
- ;v5
- mov dx, 49 ;y
- mov si, 110 ;x
- mov cx, 40
- call v
- ;h1
- mov si, 90 ;x
- mov dx, 71 ;y
- mov cx, 10
- call h
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement