Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; example 11.2
- .stack 100h
- .model small
- .data
- arr dw 1, 2, 4, 5, 6, ?
- .code
- main proc
- mov ax, @data
- mov ds,ax
- mov es, ax
- std
- lea si, arr+8
- lea di, arr+10
- mov cx,3
- rep movsw
- mov word ptr [di], 3
- mov cx, 6
- xor si, si
- lop2:
- mov dx,arr[si]
- add dx,48
- mov ah,2
- int 21h
- add si,2
- loop lop2
- main endp
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement