Translate this code into MIPS64 assembly language Addresses

Translate this code into MIPS64 assembly language. \'

Addresses: a@800, b@808, c@816

long int a, b,

double c

c=(double) (a-b) * 6.4;

Solution

daddiu $sp,$sp,-48
sd $fp,40($sp)
move $fp,$sp
lui $4,%hi(%neg(%gp_rel(test())))
daddu $4,$4,$25
daddiu $4,$4,%lo(%neg(%gp_rel(test())))
ld $3,8($fp)
ld $2,16($fp)
dsubu $2,$3,$2
dmtc1 $2,$f0
cvt.d.l $f1,$f0
ld $2,%got_page(.LC0)($4)
ldc1 $f0,%got_ofst(.LC0)($2)
mul.d $f0,$f1,$f0
sdc1 $f0,24($fp)
nop
move $sp,$fp
ld $fp,40($sp)
daddiu $sp,$sp,48
j $31
nop

Translate this code into MIPS64 assembly language. \' Addresses: a@800, b@808, c@816 long int a, b, double c c=(double) (a-b) * 6.4;Solutiondaddiu $sp,$sp,-48 s

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site