Question: Assembly: Given the MC680008 code below, answer the flooding questions ORG SO NUM EQU $12 SPX EQU $3000 DC.LSPX DCL RUN BEX DCL $8000 AEX

Assembly: Given the MC680008 code below, answer the flooding questions ORG SO NUM EQU $12 SPX EQU $3000 DC.LSPX DCL RUN BEX DCL $8000 AEX DCL $9000 LST DC.L $10, $20, #30, S40, S50, S60 RUN MOVE.L #NUM, D0 MOVE.L MOVE.L SUBQ.W MOVEQ MOVE.L ANDI.W SA000, AO A0, USP #5,DO $0, DI #LST. AO #FF00. SR GOX MOVE.W (A0)+, D2 ADDX.W D2, DI DBF DO, GOX MOVE.W DI, USP) END What are the values of the labels? What is the final state of the registers used? What is the final state of the CCR? What does the code do ? What is the other way to write the instruction DBF ? What will happen if we replace the MOVQ instruction by Move.b? MOVE.W? MOVEL? What is the significance of the ANDI here? What if we remove it? Assembly: Given the MC680008 code below, answer the flooding questions ORG SO NUM EQU $12 SPX EQU $3000 DC.LSPX DCL RUN BEX DCL $8000 AEX DCL $9000 LST DC.L $10, $20, #30, S40, S50, S60 RUN MOVE.L #NUM, D0 MOVE.L MOVE.L SUBQ.W MOVEQ MOVE.L ANDI.W SA000, AO A0, USP #5,DO $0, DI #LST. AO #FF00. SR GOX MOVE.W (A0)+, D2 ADDX.W D2, DI DBF DO, GOX MOVE.W DI, USP) END What are the values of the labels? What is the final state of the registers used? What is the final state of the CCR? What does the code do ? What is the other way to write the instruction DBF ? What will happen if we replace the MOVQ instruction by Move.b? MOVE.W? MOVEL? What is the significance of the ANDI here? What if we remove it
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
