dedmon 0 Newbie Poster

Okay! this subject is difficult for me to start.
I want to write a short test program that calls BetterP from a loop that repeats 5 times, and display each randomly generated value.

This is what I got... but I'm stump... assistance from the experts is appreciative.

Description: create an improved version that generates an integer between M and 0 and N-1. I need to create a new improved version that generates an integer between M and N-1. Let the caller pass M in EBX and N in EAX. When the procedure Betterb is called.

.data
.code
main proc
mov ebx, -300       ;lower bound
mov ex, 100         ;upper bound
call betterP

exit
main endp
end main


betterP  Proc

mov ecx, 5
l1:

call dumpregs
loop l1

betterP endP
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.