Course Solutions Uncategorized (Solved) : Convert Code Asssembly C Main Push R4 Jmp Looptest Outerloop Movw Delayloop R4 Delayloop D Q27078736 . . . .

(Solved) : Convert Code Asssembly C Main Push R4 Jmp Looptest Outerloop Movw Delayloop R4 Delayloop D Q27078736 . . . .

 

can you convert this code which is asssembly to c ?

main: push R4

jmp LoopTest

OuterLoop: mov.w #DelayLoop,R4

DelayLoop: Dec.w R4

jnz DelayLoop

Dec.w R12

LoopTest: cmp.w #0, R12

jnz OuterLoop

pop.w R4

ret

Expert Answer


An answer will be send to you shortly. . . . .

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post