Question: Consider the textbook's implementation of the standard C library function strcpy in assembly language. Implement memset , strlen , strchr , strcat , and strcmp

Consider the textbook's implementation of the standard C library function strcpy in assembly language. Implement memset, strlen, strchr, strcat, and strcmp.

Use $a0 through $a3 as necessary for the standard C library's arguments to each function.

Return in $v0.

Do *not* write a main program. You will be given a testing program soon.

It is fine if a lot of your functions look a lot like each other. In fact, that's a good sign.

Don't worry about overruns or exception cases.

EXTRA CREDIT (10 points): Implement strstr. Don't try this until you've finished the others - strstr is a lot more annoying to implement.

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!