Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please solve the following: 1. How many byte-sized memory references in total do

ID: 3561726 • Letter: P

Question

Please solve the following:

1. How many byte-sized memory references in total do the following instructions require for complete execution? Ali opcodes are single byte. What type of addressing is used? LDD #$82f Number of byte-sized memory references? What type of addressing is used? $279F LDAA Number of byte-sized memory references? What type of addressing is used? #80 LDAB Number of byte-sized memory references? What type of addressing is used? $5f2 LDD Number of byte-sized memory references? What type of addressing is used?

Explanation / Answer

Answer 1 :

LDD #$82f

NUMBER OF BYTE SIZED MEMORY REFERENCES: 3

ADDRESSING MODE:IMMEDIATE

LDAA $279F

NUMBER OF BYTE SIZED MEMORY REFERENCES:3

ADDRESSING MODE: EXTENDED

LDAB #80

NUMBER OF BYTE SIZED MEMORY REFERENCES: 2

ADDRESSING MODE: IMMEDIATE

LDD $5f2

NUMBER OF BYTE SIZED MEMORY REFERENCES:3

ADDRESSING MODE: EXTENDED

Answer 2:

             OPCODE               OPERAND

86           LDAA                     #CB       

CB

FC           LDD                        $0396

03

96

CC           LDD                        #0086

00          

86

B6           LDAA                     $4325

43

25

                Answer 3:

                                         MACHINE CODE

LDAA     $24                        B6           24

LDD        $32                         DC          32

LDD        #$80                      CC           80

LDD        #$8430                  CC           84           30

LDD        $820                      FC           08           20