so i have to write a procedure that generates a number between two ranges. The upper Range is in ax and the loewr would be in bx. For example if ax contains 10 and bx has 10, then the procedure should generate the number between +10 and -10
i have written this
Include Irvine32.inc
.data
.code
main Proc
call Random
Random PROC
mov ecx, ;loop 1 time, to generate one number
L1:
mov ebx,20 ;vallues 0 to -10
call RandomRange
sub ebx,10 ;values -10 to 10
call WriteInt
loop L1
ret
Random ENDP
exit
main ENDP
END main