Convert an C program in to an Assembly Language program using SPIM software and
ID: 3729976 • Letter: C
Question
Convert an C program in to an Assembly Language program using SPIM software and display result int pickMin( int x, int y, int z ) { int min = x ; if ( y < min ) min = y ; if ( z < min ) min = z ; return min ; } Convert an C program in to an Assembly Language program using SPIM software and display result int pickMin( int x, int y, int z ) { int min = x ; if ( y < min ) min = y ; if ( z < min ) min = z ; return min ; } Convert an C program in to an Assembly Language program using SPIM software and display result int pickMin( int x, int y, int z ) { int min = x ; if ( y < min ) min = y ; if ( z < min ) min = z ; return min ; }Explanation / Answer
.file 1 "" .section .mdebug.abi32 .previous .nan legacy .module fp=32 .module nooddspreg .abicalls .text .align 2 .globl pickMin .set nomips16 .set nomicromips .ent pickMin .type pickMin, @function pickMin: .frame $sp,0,$31 # vars= 0, regs= 0/0, args= 0, gp= 0 .mask 0x00000000,0 .fmask 0x00000000,0 .set noreorder .set nomacro slt $2,$6,$5 beq $2,$0,$L5 slt $3,$4,$5 move $5,$6 slt $3,$4,$5 $L5: beq $3,$0,$L6 move $2,$5 move $2,$4 $L6: j $31 nop .set macro .set reorder .end pickMin .size pickMin, .-pickMin
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.