Answered step by step
Verified Expert Solution
Question
1 Approved Answer
still in the code there are problem INCLUDE Irvine 3 2 . inc Output Show output from: Build 1 > - - - - -
still in the code there are problem INCLUDE Irvineinc Output Show output from: Build Build started: Project: Project, Configuration: DebugWin Assembling AddTwo.asm... D:ProjectVSProjectVSAddTwoasm: error A: syntax error : ENDP D:ProjectVSProjectVSAddTwoasm: error A: syntax error : ENDP D: ProjectVSProjectVSAddTwoasm: error A: END directive required at end of file D: ProjectVSProjectVSAddTwoasm: fatal error A: unmatched block nesting : exitprogra Build: succeeded, failed, uptodate, skipped 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 ENDP main ENDP
still in the code there are problem
INCLUDE Irvineinc
Output
Show output from: Build
Build started: Project: Project, Configuration: DebugWin
Assembling AddTwo.asm...
D:ProjectVSProjectVSAddTwoasm: error A: syntax error : ENDP
D:ProjectVSProjectVSAddTwoasm: error A: syntax error : ENDP
D: ProjectVSProjectVSAddTwoasm: error A: END directive required at end of file
D: ProjectVSProjectVSAddTwoasm: fatal error A: unmatched block nesting : exitprogra Build: succeeded, failed, uptodate, skipped
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
ENDP main
ENDP
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