Question: Question01: Write a 32-bit x86-64 assembly language program that reads two complex numbers, each having real and imaginary part of type double, from an input
Question01: Write a 32-bit x86-64 assembly language program that reads two complex numbers, each having real and imaginary part of type double, from an input textfile. It then writes to an output textfile the product and the division of the two numbers as well as the reciprocal of the first number Note: Your program must define the complex numbers as appropriate structures . Your program must use procedures: multiplyComplex, divideComplex, and reciprocalComplex to do the required computations. These procedures must have no input or output statements. Each of the procedures must be called using the C-calling convention and they must return the real and imaginary values of the result in the EAX and EBX registers respectively The input and output of your program must be done in the main procedure Hint: The relevant formulas are: (x +yi) (u vi) (ru - yv) +(xu + yu)i u2 +2 Sample input file: Sample output file: 5.0 6.0 3.0 2.0 Multiplication- 27.00000+8.00000i Division-0.23076+2.15384i Reciprocal o.08196-0.09836i Multiplication -2.00000+ 26.00000i Division 0.64706 +0.41176i Reciprocal = 0.14706-0.08824i 2.0 4.0 5.0 3.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
