Page 1 of 1

Problem 3: Write a MIPS assembly language program that asks the user to input an integer and then prints out a string th

Posted: Fri Jul 01, 2022 5:45 am
by answerhappygod
Problem 3 Write A Mips Assembly Language Program That Asks The User To Input An Integer And Then Prints Out A String Th 1
Problem 3 Write A Mips Assembly Language Program That Asks The User To Input An Integer And Then Prints Out A String Th 1 (61.27 KiB) Viewed 37 times
Problem 3: Write a MIPS assembly language program that asks the user to input an integer and then prints out a string that shows how that integer should be encoded using 16 bits. Your program should handle both positive and negative valued inputs. Your program should also print out an error message if the given input cannot be expressed as a 16 bit signed integer. As an example, if the input is 12, your program should output "0000000000001100". If the input is 34000, your program should print out an error since the largest 16 bit signed integer is 2 15 - 1= 32767.