Re: A89: Assembly Help


[Prev][Next][Index][Thread]

Re: A89: Assembly Help




no, DBcc:s does _first_ check if the condition is met, and if it is not, it will
decrese the reg, and if this decrement doesnt results in -1, it will loop.
so the shortest way to do a loop with a fixed number of loops, is to put
(numberofloops-1) in your counter-register and loop with dbra.

//Olle

Harry Tuttle wrote:
> 
> Could someone please tell me why when I write:
> 
> loop:
>    moveq    #10,d0
>    ..
>    ..
>    dblt     d0,loop
> 
>   do moves from 0000A to 0000ffff and doesn't loop.
> 
> I thought dblt would check to see if do was less that 0, and if not
> decrement the counder and go to loop:.  This doesn't appear to be happening.
> 
>      Thanks
> 
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com


References: