Answered step by step
Verified Expert Solution
Question
1 Approved Answer
INCLUDE Irvine 3 2 . inc . data menu BYTE 1 . x > y , 0 BYTE 2 . x >
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
can you fixed bilow problem
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started