Re: LF: programming command


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

Re: LF: programming command



I think you have this in the wrong order.


[snip]
> 
> Well, sort of.  I've been meaning to ask, and that reminded me.  So,
> anyway,  this program:
> 
> <some commands here>
> move #10,D0
> DBRA D0,LOOP
> <even more commands here>
> 
> LOOP
>    <some more commands>
[snip]

try it like this.

the DBcc instructions (including DBRA) come after the code you want to 
loop.

        <code>
        move #10,d0
loop:
        <this is the part that is repeated>
        dbra d0,loop
        <code>



i think that should work.

Carl Turner
cturner@garfield.leesummit.k12.mo.us
http://garfield.leesummit.k12.mo.us/~cturner/


References: