Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .model small
- .data
- w dw 1,2,3,1,1
- .code
- main proc
- mov ax, @data
- mov ds,ax
- xor ax,ax
- xor bx,bx
- mov cx,5
- addnos:
- add ax,w[bx]
- add bx,2
- loop addnos
- mov dx,ax
- add dx,48
- mov ah,2
- int 21h
- main endp
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement