## yasser87

Hi guys and girls
I am writing a program to solve a linear system equations using
gaussian elimination method by taking the factors and storing them in
a NxN+1 matrix,

this matrix can take integer numbers as well as floating point numbers
i need help in translating this program to floating point

it's ok to use pseudo code instruction but it's better to use real instruction

one last thing i need to promote the user to:
. choose N
. to choose the name of the input text file to store the matrix

and how to read the stored numbers from a file and converting them from string to single precision.

thanks in advance to you all

this is the code:

Gaussian:

addiu \$s0,\$Zero,0	#ALU Inst.
addiu \$s1,\$Zero,0	#Float. Point Inst.
addiu \$s3,\$Zero,0	#Branch&Jmp Inst.

xor \$t0,\$t0,\$t0

For1:
beq \$t0,\$t3,Quit
For2:
beq \$t4,\$t1,Quit

mul \$t7,\$t4
mflo \$s4
mul \$t8,\$t0
mflo \$s5

lw \$s7, 0(\$s6)

mul \$t7,\$t0	#4k+(n+1)k
mflo \$t9

lw \$s5, 0(\$t9)

div \$s7,\$s5
mflo \$s4		# factor=\$s4

beq \$t5,\$t6,Quit

For3:
mul \$t8,\$t5	#4j+(n+1)i
mflo \$s5

lw \$s5,0(\$s6)

mul \$t7,\$t0	#4j+(n+1)k
mflo \$s7

lw \$s7,0(\$s6)

mul \$s4,\$s7
mflo \$xx
subu \$xx,\$s5,\$xx
sw \$xx,0(\$s6)
jmp For1
Quit:
sw \$zero,0(\$s6)