[cc65] branch inside .repeat?

From: Stefan Wessels <swessels1email.com>
Date: 2012-10-22 21:15:59

I can't see anything in the documentation about having a branch inside a repeat block. I did try a .local to no avail.  Is it possible to do something like this?

In the example (made up - doesn't compile), I am using the C style token pasting to illustrate that I want unique skip_xx tokens.

.proc MapToScreen
	ldx #width-2

	.repeat height, i
	lda map+(i*width),x
	lda #32
	bcc @skip_##i
	lda #81
	sta screen+(i*width),x

	jne @loop

Thank you

To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Oct 22 21:22:54 2012

This archive was generated by hypermail 2.1.8 : 2012-10-22 21:22:58 CEST