Course Solutions Uncategorized (Solved) : Data Aa Word 1 Re Part Z Bb Word 3 Im Part Z Cc Word 5 Re Part W Dd Word 4 Im Part W Str S Q36331481 . . . .

(Solved) : Data Aa Word 1 Re Part Z Bb Word 3 Im Part Z Cc Word 5 Re Part W Dd Word 4 Im Part W Str S Q36331481 . . . .

 

.data
aa: .word 1 # Re part of z
bb: .word 3 # Im part of z
cc: .word 5 # Re part of w
dd: .word 4 # Im part of w
str: .string ” + i* “

.text
main:
lw a0 , aa
lw a1 , bb
lw a2 , cc
lw a3 , dd

#Do complex multiplication of numbers a0-a3
jal complexMul
nop
mv t0, a1 #Move imaginary value to t0
mv a1, a0 #Move real value to a1

li a0, 1 #Set ecall to print integer
ecall #Print integer

la a1, str
li a0, 4
ecall

mv a1, t0 #Move imaginary value to a1
li a0, 1
ecall #Print integer

j end # Jump to end of program

myMult:
li t0 32 #

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post