Lab 9 - BCP instruction


Introduction

In this lab we'll be implementing a new 'instruction' in MIPS. More specifically we'll be adding the ability to copy a block of words.

Your task (60 points)

Your 'instruction' should use 3 parameters. The first is the starting address of the source block. The second is the starting address of the destination block. The third is the number of words to copy. Perhaps the easiest method of doing this by implementing a procedure. Devise a method of showing your program works correctly and implement it as well.

Questions to answer

Answer the following questions in a comment block at the start of your program.

  • How many instructions are executed curing the course of your procedure?
  • If using a multi-cycle data path, how many clock cycles go by during the execution of your procedure? Justify your answer!

    Extra credit (15 points)

    To earn extra credit, complete this lab by the end of the lab session. Do not submit a non-working program though, or neglect to answer the questions, as you will not be eligible. You must be present at the start of lab and complete and submit it by 9:50 am.

    Important notes

    You will be submitting your programs via the web-drop by April 18th at 9am. The link is available from the course web page.

  • You must name your submission file lab9.s

    I plan to automate the retrieval of your submissions so this is why it's critical you name these files correctly.

    What to turn in

  • Use the web drop to turn in your submission named lab9.s
  • This is due by Friday, April 18th by 9am. This deadline will be enforced automatically.