Question: Assemblers and Computer Architecture Write the MIPS assembly code that creates the 32-bit constant 0010 0000 0000 0001 0100 1001 0010 0100two and stores that

Assemblers and Computer Architecture Write the MIPS assembly code that creates the 32-bit constant 0010 0000 0000 0001 0100 1001 0010 0100two and stores that value to register $t1.

HI! I need help with my assemblers homework, if you could please help and explain the process I would appreciate it!

1.)

Write the MIPS assembly code that creates the 32-bit constant 0010 0000 0000 0001 0100 1001 0010 0100two and stores that value to register $t1. And print the value of $t1 to stdout in binary - i.e., as a 32 bit sequence of '1's and '0's (use the MIPS syscall functionality for I/O).

2.)

--> Write a program in MIPS assembly language to convert an ASCII number string containing positive and negative integer decimal strings, to an integer. Your program should expect register $a0 to hold the address of a nullterminated string containing some combination of the digits 0 through 9. Your program should compute the integer value equivalent to this string of digits, then place the number in register $v0. If a non-digit character appears anywhere in the string, your program should stop with the value 1 in register $v0. For example, if register $a0 points to a sequence of three bytes 50ten, 52ten, 0ten (the nullterminated string 24), then when the program stops, register $v0 should contain the value 24ten.

--> Your program should accept input from the keyboard (use the MIPS syscall functionality for I/O). The program is to accept text input from a keyboard (i.e. a string), and translate it to its numeric interpretation. E.g., the string "24" (which has a 2 byte ASCII character representation) should be translated to its decimal value equivalent 24. NO POPUP WINDOWS FOR INPUT - use service code 8 and NOT 54!

SAVE THE 2 PROGRAMS AS A .asm FILE

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!