Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; multi-segment executable file template.
- data segment
- ;pkey db "press any key...$"
- zbor db "zbor$"
- ends
- stack segment
- dw 128 dup(0)
- ends
- start:
- mov ax, data
- mov ds, ax
- mov es, ax
- lea bx,zbor
- mov cx,4d
- ciklus:
- mov ax,[bx]
- push ax
- inc bx
- dec cx
- cmp cx, 0d
- jne ciklus
- mov cx,4d
- pecatenje:
- pop ax
- mov dx,ax
- mov ah, 02h
- int 21h
- dec cx
- cmp cx,0d
- jne pecatenje
- mov ax, 4c00h
- int 21h
- ends
- end start
Advertisement
Add Comment
Please, Sign In to add comment