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

Re: Test: the cycle



On Feb 29, 11:25 pm, Jerry <awande...@yahoo.ca> wrote:
> "ict@ccess" <gids...@sasktel.net> writes:
> > On Feb 17, 7:22 am, "ict@ccess" <gids...@sasktel.net> wrote:
>
> > Missed a CLC
>
> > should be
>
> > CLC
> > ASL C036
> > CLC
> > ROR C036
>
> Not really sure why you wouldn't just do:
>
>   ASL $c036
>   LSR $c036
>
> CLC is pointless when followed by ASL, and CLC, ROR is the same as LSR.
>
> What am I missing?

Good catch.
Usually, I type without thinking, then I start to second guess what I
type.  Then I get confused with the instructions of where the carry
goes with an ASL ROL LSR ROR.  Then I left the CLC instruction in play
to show the preservation of the LSB bit going one way and the MSB
going the other way.  Then I ....

Oh Hell!  I screwed up.  :)