ECET 330 ECET330 Week 2 Homework Assignment Solution

ECET 330 ECET330 Week 2 Homework Assignment Solution

soffix

  • $16.99


ECET 330 Week 2 Homework

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. 


      We Also Recommend


      Sale

      Unavailable

      Sold Out