Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

PLEASE USE MIPS ASSEMBLY LANGUAGE (I USE MYPSIM) AS MY COMPILER Write a function

ID: 3663674 • Letter: P

Question

PLEASE USE MIPS ASSEMBLY LANGUAGE (I USE MYPSIM) AS MY COMPILER

Write a function that computes the next state of a linear feedback shift register (LFSR) given the current state of the LFSR. The LFSR should satisfy the taps given by the following polynomial: x 24 + x 23 + x 21 + x 20 + 1 Your function should take the state as a 32-bit input parameter and return a 32-bit output value. Your main program for the function should call your LFSR function for the following input states and print the output state:

Explanation / Answer

## pseudoPoly.asm ## evaluate the polynomial ax2 + bx + c ## .text .globl main main: lw $t3,x # get x lw $t0,a # get a lw $t1,bb # get bb lw $t2,c # get c mult $t3,$t3 # x2 mflo $t4 # $t4 = x2 nop nop mult $t4,$t0 # low = ax2 mflo $t4 # $t4 = ax2 nop nop mult $t1,$t3 # low = bx mflo $t5 # $t5 = bx addu $t5,$t4,$t5 # $t5 = ax2 + bx addu $t5,$t5,$t2 # $t5 = ax2 + bx + c sw $t5,value # value = polynomial

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote