Computer Engineering II
  Machine Problem 2 (Due Wed Oct 3 5:00:00 pm)

Schedule    Lab schedule
Homework    NASM docs
Machine Problems    Resources
Final Project    Photos
Gradebook    Feedback
Syllabus    Archives
Lectures    Download NASM
Home    Restricted access

When you submit this, the TA should:

  • check your solutions,
  • ask a random question that tests your understanding of the MP,
  • assign points for each item on the list,
  • assign bonus and/or penalty points,
  • and handle the electronic handin.
FunctionalityMinMaxScore
DoCommand06
Program loops until 'q' is entered
For every non-blank line either a result or an error message is shown
ReadLine09
User input is taken properly: backspace deletes characters
Buffer experiences neither overflow nor underflow, and beeps on attempts to do so
GetLetter04
Returns a letter if available, else error status
GetNumber04
Returns a FDNumber if available, else error status
CalculateInterest05
Correctly applies formula P * (1+i)n
i 100 0.03 12 evaluates to 142.00 (due to rounding)
ConvertCurrency06
Correctly applies formula P * f * t
c evaluates to ...
FDRead09
Reads in a FDNumber, saving to [di], else returns error status
100.3 is processed correctly (test with c d d 100.3)
FDWrite09
Writes out a FDNumber to the buffer at offset bx
10.03 is output correctly (test with c d d 10.03)
FDAdd04
Adds two FDNumbers together
10.90 + 10.90 = 21.80, not 20.180 (cannot be tested in current framework)
FDMul09
Multiplies two FDNumbers together
c d d n returns n
FDPow010
Properly exponentiates FDNumbers, ignoring non-integer exponent parts
i 100 0.03 12 evaluates to 142.00 (due to rounding)
Score ModifiersMinMaxScore
Modularity
Program should follow all specifications of assignment
Used hardcoded address rather than pointers-30
Technique and Style
Program should be comprised of compact and efficient code
Awkward use of conditional jumps or loops-20
Extraneous use of registers and/or variables-30
Excessive coding-30
Comments
Program should have clear and precise comments
No Function Headers-20
Excessive "sportscaster" commenting-20
Sparse and/or unclear comments-30
Penalty/Bonus
Before Wed Oct 3 5:00:00 pm: +2pts/weekday06
After Wed Oct 3 5:00:00 pm: -7pts/weekday up to 5 days, -75 after 5 days-750
Source .asm:
Return to ECE291 Home Page Fall 2001