Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- data segment
- file db 'output.txt'
- s db 'hui '
- s1 db 'pizda'
- handle dw 0
- buf dw 128 dup(0)
- data ends
- code segment
- assume cs:code,ds:data
- begin:
- mov ax, data
- mov ds,ax
- cld
- mov di,buf
- lea si, s
- mov cx, 4
- rep movsb
- cld
- mov di,buf
- lea si, s1
- mov cx, 5
- rep movsb
- mov ax,3d01h
- lea dx,file
- int 21h
- mov handle,ax
- xor ax,ax
- mov ah,40h
- mov bx,handle
- lea dx,buf
- mov cx,9
- int 21h
- mov ax,4c00h
- int 21h
- code ends
- end begin
Add Comment
Please, Sign In to add comment