- 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 35 times
Problem 3: Write a MIPS assembly language program that asks the user to input an integer and then prints out a string th
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Problem 3: Write a MIPS assembly language program that asks the user to input an integer and then prints out a string th
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.