- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
.model small
.data
a dw 3
b dw 2
c dw 4
d dw 5
x dw 0
y dw 0
.code
mov ax,@data
mov ds,ax
mov ax,a
mul ax
mul ax
mov bx,ax
mov ax,b
mul ax
cmp bx,ax
jg firstelse
mov ax,c
mul d
mov x,ax
mov ax,a
div b
cmp ax,x
jne secondelse
mov ax, a
mov bx, b
and ax,bx
jmp exit
secondelse:
mov ax,c
jmp exit
firstelse:
mov ax,c
mul d
add ax,b
exit:
mov ah,04Ch
int 21h
end firstelse
end secondelse