.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 #
PayPal Gateway not configured
PayPal Gateway not configured