Ecco il codice.
.386
.MODEL flat, stdcall
.STACK 4096
.data
val1 BYTE 10
val2 BYTE 20
.code
MAIN PROC
mov ax, val1
cmp ax, val2
jb lm
cmp ax, val2
ja ld
add ax, val2
lm:
mov dx, 0
mov bx, val2
mul bx
jmp end
ld:
mov dx, 0
mov bx, val2
div bx
end:
;Codice finale
MAIN ENDP
END MAIN