Question: When completing the assignment, I keep getting an error stating the instruction operands must be the same size in line 6 9 . Please explain
When completing the assignment, I keep getting an error stating the instruction operands must be the same size in line Please explain how this is incorrect.
mGetString MACRO prompt, output, maxLength, bytesRead
mDisplayString prompt
MOV EDX, output
MOV ECX, maxLength
CALL ReadString
MOV bytesRead, EAX
ENDM
mDisplayString MACRO string
MOV EDX, OFFSET string
CALL WriteString
ENDM
mDisplayChar MACRO character
MOV AL character
CALL WriteChar
ENDM
mDisplayString introduction
mDisplayString instructions
mGetString filePrompt, fileName, bufferLength, readBytes
; Open file
MOV EDX, OFFSET fileName
CALL OpenInputFile
JC fileError
; Read file
MOV EDX, OFFSET fileName
MOV ECX, bufferLength
CALL ReadFromFile
JC fileError
CALL CloseInputFile
EXIT
; Exception to handle errors observed when opening or reading the file
fileError:
mDisplayString fileErrorPrompt
EXIT
PUSH OFFSET fileBuffer
PUSH OFFSET tempArray
CALL ParseTempsFromString
mDisplayString tempResult
PUSH tempArray
CALL WriteTempsReverse
mDisplayString farewell
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
