Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .model small
- .stack 100h
- .386
- .data
- a dw 3
- b dw 4
- c dw 5
- d dw 6
- e dw 7
- con db 7
- cons db 3
- first dd 0
- second dd 0
- third dw 0
- res dw 0
- .code
- mov ax, @data
- mov ds, ax
- mov ax, a
- mul ax
- mov bx, ax
- mov ax, a
- mul ebx
- mul con
- mov first,eax
- mov ax, c
- add ax,c
- mov bx,ax
- mov ax,d
- mul ax
- rol eax,16
- mov ax,dx
- ror eax,16
- mov ecx,eax
- mov ax, bx
- cwde
- sub eax,ecx
- mov ebx,eax
- mov ax,b
- cwd
- mul ebx
- mov second,eax
- mov ax,e
- mul cons
- add ax,a
- cbw
- mov third,ax
- mov eax,first
- add eax,second
- div third
- mov res,ax
- mov ax,4c00h
- int 21h
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement