Re: [cc65] Inline assembly question

From: Groepaz <groepaz1gmx.net>
Date: 2009-08-04 00:18:00
On Dienstag 04 August 2009, Scott Hutter 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?

asm("bne %v",lbl1);

?

-- 

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

You do not really understand something unless you can explain it to your 
grandmother 
<Albert Einstein>

----------------------------------------------------------------------
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:18:53 2009

This archive was generated by hypermail 2.1.8 : 2009-08-04 00:18:54 CEST