Question: Please help me understand what is going on...assembly language CS 594 (Fall 2018): Microprocessor-Based System Design IDE68K/68000: Add 5 Bytes from $A00 and store (+)

Please help me understand what is going on...assembly language  Please help me understand what is going on...assembly language CS 594

CS 594 (Fall 2018): Microprocessor-Based System Design IDE68K/68000: Add 5 Bytes from $A00 and store (+) LOOP, BNE, SUB, MOVEQ, MOVEA ORG $400 CLR.L DO CLR.L D1 MOVEA.L #$A00,A0 ; set pointer $A00 01 $A01 02 $A02 03 $A0304 $A0405 $A05OF ; PROG starts here ; hold sum ; loop counter NEXT ADD.B (A0),D0 ;get/add data ADDA.B #1,A0 ADDI.B #1 ,D1 CMPI.B #5,DI BNE NEXT MOVE.B D0, (A0)store sum TRAP #15 increment ptr after 00

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!