patan.gova
Full Member level 3
- Joined
- Dec 19, 2011
- Messages
- 172
- Helped
- 4
- Reputation
- 8
- Reaction score
- 0
- Trophy points
- 1,296
- Activity points
- 2,776
Hi,
Can some one explain me of how each line in the below assembly code works and what is the result of each line and also output value at the ending if input_delay0 ia assumed as '0'.
thanks.
Can some one explain me of how each line in the below assembly code works and what is the result of each line and also output value at the ending if input_delay0 ia assumed as '0'.
Code:
mov.w &input_delay0,R12
mov.w R12,R13
rra.w R13
rra.w R13
add.w R12,R13
rra.w R13
rra.w R13
rra.w R13
rra.w R13
rra.w R13
rra.w R13
rra.w R13
rra.w R13
rra.w R13
rra.w R13
rra.w R13
rra.w R13
mov.w R13,R14
add.w R14,&output