QuestionQuestion

Please see Question.pdf

Solution PreviewSolution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

.code
main PROC
; Introduction
mov EDX, OFFSET intro1 ; Print intro message 1
call WriteString
call Crlf ; Print new line
mov EDX, OFFSET intro2 ; Print intro message 2
call WriteString
call Crlf ; Print new line
call Crlf ; Print new line
finit ; Initialize the FPU

; Extra credit
mov EDX, OFFSET ecmsg1 ; Print extra credit message 1
call WriteString
call Crlf ; Print new line
mov EDX, OFFSET ecmsg2 ; Print extra credit message 2
call WriteString
call Crlf

fld var1 ; push 2.5
fld var2 ; push 1.5
fld var3 ; push 3.5
fmul ; perform * and pop the stack
fld var4 ; push 2
fdiv ; perform / and pop the stack
fld var5 ; push 3
fld var6 ; push 1.4
fmul ; perform * and pop the stack
fld var7 ; push 2.2
fld var4 ; push 2
fsub ; perform - and pop the stack
fmul ; perform * and pop the stack
fld var5 ; push 3
fld var4 ; push 2
fmul ; perform * and pop the stack
fld1 ; push 1
fmul ; perform * and pop the stack
fdiv ; perform / and pop the stack
fdiv ; perform / and pop the stack
fadd ; perform + and pop the stack

mov EDX, OFFSET ecmsg3 ; Print extra credit result message
call WriteString
call WriteFloat ; Print the result
fstp Y ; Pop the stack and store the result
call Crlf ; Print new line
call Crlf...
$70.00 for this solution

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Computer Science - Other Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Decision:
Upload a file
Continue without uploading

SUBMIT YOUR HOMEWORK
We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats