UMBC | CMSC211 |
12 Mar
GetDec only returns signed values, so when working with the word array,
you MUST insure the user does not attempt to enter in an unsigned
value greater than 32767! GetDec also sets the CY flag if the user
has entered an invalid signed number, so use it for error checking!!!!
Document when you are assuming the integers to be signed or unsigned, so that grader will not penalize you in the event the grader has a different assumption!
For the 8 bit array, when you get the input, the value entered could be too large (or small) to fit into 8 bits, so you must reject invalid values. Require the user to give you a different
Name the source code file: proj2.asm
Enter ten values in the range of 0 to 255:
1
2
3
-4 Invalid value 4
5
6
7
8
9
10
The average is 5
Enter ten values in the range of 0 to 65535:
1
2
3
4
5
6
7
8
9
10
The average is 5
;; Filename: proj1.asm ;; Name: Ima Student ;; SSAN: 6789 ;; Date: 3 Feb 2001 ;; Course: CMSC-211 ;; Description: (Your psuedocode goes here. Must be detailed) ;; Notes: (As needed, such has how to compile)
UMBC CMSC211 | CSEE | CMSC211 | Lectures |