Question: 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
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
