ECET 330 Week 2 Homework

Published on January 2018 | Categories: Graphic Art | Downloads: 130 | Comments: 0 | Views: 1862
of 1
Download PDF   Embed   Report

1. Write a simple program in which the value, $55, is added three time 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 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 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 5. Show the status of H and N flags after the following code. LDAA #$A1 ADDA #$0F 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.

Comments

Content

1. Write a simple program in which the value, $55, is added three time 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 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 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 5. Show the status of H and N flags after the following code. LDAA #$A1 ADDA #$0F 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.

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close