| ECE291 | Computer Engineering II | Lockwood, Spring 1997 |
| Assigned | Thursday 1/30/97 |
| Due Date | Tuesday 2/11/97 |
| Purpose | Learn to write assembler code. Use looping and branching. Perform simple math operations. |
| Points | 50 |
For this machine problem, you are given:
The format of the 32-byte Event structure is summarized below. In this table 'B' represents a 1-byte unsigned integer, 'A' represents an ASCII character, and '$' represents the ASCII character used to mark the end of a string. By default, message is initialized as a 29-byte array of blank characters. The endmark field is always filled with the '$' character so that message can be easily printed with the DSPMSG routine of LIB291. The offset refers to the starting location of each field in the structure.
| Field | month | day | message | endmark |
|---|---|---|---|---|
| Data | B | B | AAAAAAAAAAAAAAAAAAAAAAAAAAAAA | $ |
| Offset | 0 | 1 | 2 | 31 |
An array of event structures is defined by a variable called events. The number of events in this array is given by a word-sized integer called numrec.