Re: [cc65] Optimization possible?

From: Mark J. Reed <markjreed1mail.com>
Date: 2009-10-20 20:03:28
On Tue, Oct 20, 2009 at 1:49 PM, Groepaz <groepaz@gmx.net> wrote:
> the other day i stumbled about this:
>
> bcc somelabel
> clc

?  What's wrong with that?  If the carry is already clear, go over
here - otherwise, clear it.  Nothing inherently stupid there, unless
somelabel is directly below the clc instruction.

Now, if you see a

bcc somelabel
sec

That would be silly - unless the sec is the target of a jump from
other code besides the bcc, of course.



-- 
Mark J. Reed <markjreed@gmail.com>
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Oct 20 20:03:35 2009

This archive was generated by hypermail 2.1.8 : 2009-10-20 20:03:37 CEST