CIS 351

Lab 6: Branches

Fall 2018

For this lab, you are going to write and test some assembly code using branches. As with previous assignments, in order for your solution to work with my MUnit tests, you must follow these rules:

Problems

1. makes10(int a, int b) from CodingBat.
2. intMax(int a, int b, int c) from CodingBat.
3. close10(int a, int b) from CodingBat.
4. max1020(int a, int b) from CodingBat.
5. dateFashion(int you, int date) from CodingBat.
6. redTicket(int a, int b, int c) from CodingBat.

You may use this class as a starting point for your MUnit tests.

Submission and grading

Be sure to document and comment your code!

When your code passes all tests, submit the .asm file and MUnit test file using Blackboard's Assignment Manager. Call me over, and I will run your code against my tests. (Your code needs to be in the EOS environment for me to do this.)

Hints:

For more practice

If you are looking for more assembly coding practice, consider these CodingBat problems:


Updated Saturday, 13 October 2018, 3:30 PM

W3c Validation