ORG $1000 START: ; first instruction of program * Put program code here MOVE.B N,D0 ; D0 contiene N MOVE.W #0,D1 ; D1 è la variabile di accumulazione (SOMMA) MOVE.B #0,D3 ; D3 è la variabile di conteggio (i) LEA V,A0 ; A0 punta al loop ADD.B (A0,D3),D1 ADD.B #1,D3 CMP.B D3,D0 BNE loop MOVE.B D1,SOMMA SIMHALT ; halt simulator * Put variables and constants here ORG $2000 N DC.B 4 V DC.B 3,1,4,7 SOMMA DS.W 1 END START *~Font name~Courier New~ *~Font size~10~ *~Tab type~1~ *~Tab size~4~