CS代考 MIPS Week 14/16 Assessed Coursework

MIPS Week 14/16 Assessed Coursework

Deadline Friday Week 16 (24/2/23)
Your task for this exercise is to draw a musical note that interacts via the command line, using the

Copyright By PowCoder代写 加微信 powcoder

Bitmap Display you saw in week 12 and the syscall function built into MIPS. Your program should
display a string (essentially a menu) of instructions on the screen using syscall, then accept a user
input of an integer in order to determine what action (cls, stave, note, exit) to carry out. A second
integer input will enable the user to select a colour – there must be at least 2 colours used. There is
no requirement to know anything about musical notes – all the relevant information is provided in
the slides.
The figure below shows an advanced program that can draw a user defined note A

Marking Scheme
Functionality
Code design
Commenting, clarity
I Self-grading

Functionality
Fulfils requirements for B. Can accept multiple char inputs for a note and draw a
square in the appropriate place on screen. Can play the note.
Fulfils requirements for C. Can select cls and stave (5 horizontal lines) options. Can
choose colour of screen or position of stave. Can deal with a bad option by exiting or
repeating question. Can repeat option selection
Successfully prints instructions, inputs the cls option and responds by colouring screen
Allows the user to input screen colour repeatedly and responds to that, changing the
colour, features at least 3 colour options. Exits the program properly.
The menu is printed to the screen using syscall, and the background is coloured in a
single colour (not blue or black). The read integer is attempted, and tells the screen to
color. May demonstrate these elements separately
Code design
Uses spill when calling procedure(s) if required. Uses procedure(s) effectively.
Makes good use of a procedure (for the stave) and labels. Very little repeated code.
Implements loops using branch and labels well. May have some repeated code
No structure to code. Significant repeated
Comments/clarity
Clear structure (and helpful comments) about variable use. Well commented
throughout. Spaced and organised for clarity.
Good use of comments. Reasonable organisation, can follow program reasonably well
Variable use is sensible (ie $a for passing in and Sv to return from parameter’
Sparse or sometimes unhelpful comments. Some consistency in use of variables. Some
effort at organisation.
Few comments. Difficult to read code.

程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com