Re: [cc65] Optimization possible?

From: Groepaz <groepaz1gmx.net>
Date: 2009-10-20 20:10:18
On Dienstag 20 Oktober 2009, Mark J. Reed wrote:
> 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.

sorry, i shouldnt type this sort of thing before my good morning coffee :)

the actual snippet was this:

bcc L021A
clc
L021A:

...which is kinda pointless :)

-- 

http://www.hitmen-console.org    http://magicdisk.untergrund.net
http://www.pokefinder.org        http://ftp.pokefinder.org

Der Computer ist eine Maschine zum Kopieren und Verändern von Bits. 
<Wau Holland>

----------------------------------------------------------------------
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:10:11 2009

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