DEVRY_ECET_330_WEEK TWO_ILAB
Laboratory Report Cover Sheet
DeVry University
College of Engineering and Information Sciences
Course Number: ECET330
Professor:
Laboratory Number:2
Laboratory Title: Introduction to CodeWarrior
Submittal Date:Click here to enter a date.
Objectives:
Results:
Conclusions:
Team: |
|
|
|
|
|
| Name |
| Program |
| Signature |
IV. 1- A. Copy and paste the complete source code for adding 7 and 8.
IV. 1-B. Copy and paste the IDE register window showing the value of A and B.
IV. 1-C. Copy and paste the IDE register window showing the value of A and B after executing the instruction to add A and B.
IV. 1.D- Copy and paste the Assembly Window showing the machine code.
IV. 2. A. Copy and paste the source code for adding your ID numbers.
IV. 2. B. Copy and paste the IDE register window showing the value of final result (in HEX).
IV. 2. C. Copy and paste the IDE register window showing the value of final result (in decimal).
IV. 2. D. Zero and Carry flag.
Zero Flag = ________________________
Carry Flag=_________________________
Questions:
1. Assume that the value of Register A is $FF and Register B is 00. What will be the value of zero flag, carry flag, Register A, Register B, and Register D after executing the instruction?
ADDA #$1
Zero-Flag = __________________________
Carry-Flag = ___________________________
Value of Register A = _____________________
Value of Register B = __________________
Value of Register D = _______________________
2. Assume that the value of Register A is $FF and Register B is 00. What will be the value of zero flag, carry flag, Register A, Register B, and Register D after executing the instruction?
ADDB #$1
Zero-Flag = __________________________
Carry-Flag = ___________________________
Value of Register A = _____________________
Value of Register B = ___________________
Value of Register D = ________________________
3. Assume that the value of Register A is $FF and Register B is 00. What will be the value of zero flag, carry flag, Register A, Register B, and Register Dafter executing the instruction?
ADDD #$1
Zero-Flag = __________________________
Carry-Flag = ___________________________
Value of Register A = _____________________
Value of Register B = ___________________
Value of Register D = ________________________
4. Assume that the value of Register D is $00FF. What will be the value of Registers A, B, and D after executing the instruction?
ADDD #$2
Register A = ________________________
Register B = __________________________
Register D = __________________________
Grade:
Deliverable | Points Available | Points Achieved |
Laboratory Cover Sheet | 8 |
|
Working Circuit(s)/Program(s) | 8 |
|
Observations/Measurements | 6 |
|
Questions | 8 |
|
Total Points | 30 |
|
| ||
Comments:
| ||
11 years ago
Purchase the answer to view it

- ecet330_w2_ilab_name.docx