You must code this using Mips. Do not use any other programming language. Only u
ID: 3783533 • Letter: Y
Question
You must code this using Mips. Do not use any other programming language. Only use Mips 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^20 + x^19 + x^16 + x^14 + 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: 0x00000001 Oxdeadbeef 0x200214c8 0x00000000Explanation / Answer
float mul(float f, int p) { __asm { mov eax, f mov ecx, p shl ecx, 23 add eax, ecx mov f, eax } return f; }
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.