Exercise: strcpy program in MIPS assembly

 

This is an exercise to familiarize you to MIPS assembly language and the SPIM simulator.

Examine the strcpy.asm program, with main and strcpy functions and data. The program is based on the discussion (p. 124-126) in the textbook.

Start SPIM, check delayed branches under setting.  Load strcpy.asm

Examine the program and data areas. See how

Set break points (note addresses and enter them)

Start execution. At breakpoints, observe what has happened

Are all the observations as you expected?

You don't need to turn anything in. But you will need the skills for programming in MIPS.