Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PUBLIC funk
- EXTERN puts:PROC
- .data
- extern a:word, b:word, d:word, shisl:dword, znam:word, rez:word
- .code
- funk PROC
- ;----(22/d+3*b)/36-a*d/3)
- ;-------------shisl
- mov ax,22
- cwd
- idiv d
- mov bx,ax
- mov ax,3
- cbw
- imul b
- cbw
- add ax,bx
- cwd
- mov word ptr shisl,ax
- ;------------------znam
- mov bx,a
- imul d
- cbw
- mov dx,3
- idiv dx
- cbw
- mov ax,36
- sub ax,bx
- cwd
- mov word ptr znam,ax
- mov ax,word ptr shisl
- idiv znam
- cwd
- mov word ptr rez,ax
- ret
- funk ENDP
- END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement