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.
Functionality
Min
Max
Score
DoCommand
0
6
Program loops until
'q'
is entered
For every non-blank line either a result or an error message is shown
ReadLine
0
9
User input is taken properly: backspace deletes characters
Buffer experiences neither overflow nor underflow, and beeps on attempts to do so
GetLetter
0
4
Returns a letter if available, else error status
GetNumber
0
4
Returns a FDNumber if available, else error status
CalculateInterest
0
5
Correctly applies formula
P * (1+i)
n
i 100 0.03 12
evaluates to
142.00
(due to rounding)
ConvertCurrency
0
6
Correctly applies formula
P * f * t
c
evaluates to
...
FDRead
0
9
Reads in a FDNumber, saving to
[di]
, else returns error status
100.3 is processed correctly (test with
c d d 100.3
)
FDWrite
0
9
Writes out a FDNumber to the buffer at offset
bx
10.03 is output correctly (test with
c d d 10.03
)
FDAdd
0
4
Adds two FDNumbers together
10.90 + 10.90 = 21.80, not 20.180 (cannot be tested in current framework)
FDMul
0
9
Multiplies two FDNumbers together
c d d
n
returns
n
FDPow
0
10
Properly exponentiates FDNumbers, ignoring non-integer exponent parts
i 100 0.03 12
evaluates to
142.00
(due to rounding)
Score Modifiers
Min
Max
Score
Modularity
Program should follow all specifications of assignment
Used hardcoded address rather than pointers
-3
0
Technique and Style
Program should be comprised of compact and efficient code
Awkward use of conditional jumps or loops
-2
0
Extraneous use of registers and/or variables
-3
0
Excessive coding
-3
0
Comments
Program should have clear and precise comments
No Function Headers
-2
0
Excessive "sportscaster" commenting
-2
0
Sparse and/or unclear comments
-3
0
Penalty/Bonus
Before Wed Oct 3 5:00:00 pm: +2pts/weekday
0
6
After Wed Oct 3 5:00:00 pm: -7pts/weekday up to 5 days, -75 after 5 days
-75
0
Source .asm:
Return to ECE291 Home Page
Fall 2001