Question: my code is getting exception please fix it out.the result should be as in the image include Irvine 3 2 . inc . data promptHigh

my code is getting exception please fix it out.the result should be as in the image
include Irvine32.inc
.data
promptHigh BYTE "Enter the high value of the range: ",0
promptLow BYTE "Enter the low value of the range: ",0
resultMessage BYTE "The generated random number is: ",0
highValInt DWORD ?
lowValInt DWORD ?
.code
main PROC
; Ask for the high value of the range
mov edx, OFFSET promptHigh
call WriteString
call ReadInt
mov highValInt, eax
; Ask for the low value of the range
mov edx, OFFSET promptLow
call WriteString
call ReadInt
mov lowValInt, eax
; Get the system time as the seed
call GetSystemTime
movzx eax, dx ; Move the lower 16 bits of the system time into EAX
call Randomize ; Use the system time as the seed
; Generate a random number within the user-supplied range
mov ebx, highValInt
mov ecx, lowValInt
call RandomRange
add eax, ecx ; Add the low value to the generated random number
; Display the result
mov edx, OFFSET resultMessage
call WriteString
mov eax, ecx ; Move the random number to EAX before displaying
call WriteInt
exit
main ENDP
end main
Positives are: +277+209+831+977+353+546+573+998+762+887+893+972
Negatives are: -433-3-237-280-573-613-340-687
C: ??? Users ??console??source??repos?? Project1??? Debug ??? Project1.exe (process 6172) exited
with code 0.
Press any key to close this window ...
 my code is getting exception please fix it out.the result should

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!