Question: I NEED FIXED THE BELOW PROBLEM FROM THIS CODE assembly INCLUDE Irvine 3 2 . inc . data menu BYTE 1 . x >
I NEED FIXED THE BELOW PROBLEM FROM THIS CODE
assembly
INCLUDE Irvineinc
data
menu BYTE x y
BYTE x y
BYTE x y
BYTE x y
BYTE x y
BYTE Exit program",
truemsg BYTE "TRUE",
falsemsg BYTE "FALSE",
promptx BYTE "Enter x:
prompty BYTE "Enter y:
code
main PROC
call displaymenu
call readchoice
cmp al
je exitprogram
call readnumbers
cmp al
je proc
cmp al
je proc
cmp al
je proc
cmp al
je proc
cmp al
je proc
jmp main
displaymenu PROC
mov edx, OFFSET menu
call WriteString
ret
readchoice PROC
call ReadChar
ret
readnumbers PROC
mov edx, OFFSET promptx
call WriteString
call ReadChar
mov x al
mov edx, OFFSET prompty
call WriteString
call ReadChar
mov y al
ret
proc PROC
; x y
mov al x
cmp al y
jg printtrue
jmp printfalse
proc PROC
; x y
mov al x
cmp al y
jge printtrue
jmp printfalse
proc PROC
; x y
mov al x
cmp al y
jl printtrue
jmp printfalse
proc PROC
; x y
mov al x
cmp al y
jle printtrue
jmp printfalse
proc PROC
; x y
mov al x
cmp al y
je printtrue
jmp printfalse
printtrue PROC
mov edx, OFFSET truemsg
call WriteString
jmp exitprogram
printfalse PROC
mov edx, OFFSET falsemsg
call WriteString
jmp exitprogram
exitprogram PROC
ret
exitprogram ENDP
main ENDP
END main
Output
Show output from: Build
Build started: Project: Project, Configuration: DebugWin
Assembling AddTwo.asm...
D:ProjectVSProjectVSAddTwoasm: fatal error A: unmatched block nesting : main Build: succeeded, failed, uptodate, skipped
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
