first question is like this. Where is the actual answer stored
start org $1000 move.l #$7ffe,sp ; move.l #data,a1 ; move.b #3,d2 ; loop add.b (a1)+,d1 ; sub.b #1,d2 ; bne loop ; move.b d1,(a1) ; move.b #228,d7 ; trap #14 org $2000 data dc.b 5 dc.b 7 dc.b 9 ds.b 1 ;space for result end
now i'm thinking that the answer is 21 and overwrites the actual value of 9, however i only come to this conclusion because isn't it so that ds.b just means to reserve space in a1 for the answer, not actually be called upon.
** Edit **