[cc65] Re: Inline assembly question

From: Scott Hutter <scott.hutter1gmail.com>
Date: 2009-08-04 00:17:50
Nevermind... %g explained it. Sorry for the mail :(

On Mon, Aug 3, 2009 at 5:13 PM, Scott Hutter <scott.hutter@gmail.com> wrote:

> How do you branch?  Normally in assembly you can do:
>
>     bne lbl1
>     lda #$00
> lbl1:
>       rts
>
> Obviously a poor example, but I think you see what Im asking.  Ive tried
> branching forward using C labels such as:
>
> asm("bne lbl1");
>
> ...
>
> lbl1:
>  asm("...");
>
> But this gives me a Range error.
>
> Any ideas?
>
>
>

----------------------------------------------------------------------
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 Aug 4 00:19:03 2009

This archive was generated by hypermail 2.1.8 : 2009-08-04 00:19:06 CEST