Re: [cc65] Inline assembly question

From: Payton Byrd <payton1paytonbyrd.com>
Date: 2009-08-04 00:17:10
Use the goto statement.


From: Scott Hutter 
Sent: Monday, August 03, 2009 5:13 PM
To: cc65@musoftware.de 
Subject: [cc65] Inline assembly question


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

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