: Embedded Systems and HCS12 Programming Model - Homework 1. Write a simple prog
ID: 3584493 • Letter: #
Question
: Embedded Systems and HCS12 Programming Model - Homework 1. Write a simple program in which the value, $55, is added three times. (Points : 4) 2. Which of the following instructions is (are) illegal? I. LDAA #500 II. LDAA #50 III. LDAA #$255 IV. STAA #50 V. STAA $50 VI. LDAA 6, X (Points : 4) 3. Identify the addressing mode for each of the following. I. STAA $2005 II. LDAA #$55 III. STAA $55 IV. CLRA V. ADDA 0, X (Points : 5) 4. Show the status of C and Z flags after each of the following codes. I. LDAA #$54 ADDA #$C4 II. LDAA #01 ADDA #$FF (Points : 4) 5. Show the status of H and N flags after the following code. LDAA #$A1 ADDA #$0F (Points : 4) 6. Define a byte-size and word-size variable starting at address $2000. Initialize both variables to $55. You should use ORG, DC.B, and DC.W directives. (Points : 4)Explanation / Answer
please go through this link it may helps you
http://www.asee.org/documents/sections/middle-atlantic/spring-2011/Teaching-an-Embedded-System-Course-to-Electrical-Engineering-and-Technology-Students.pdf
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.