[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

About CC65 inline assembly problem.



I want to call inline assembly routine.

void __fastcall__ displayCharA(void)
{
                // Display char 'A'
	__asm__	(" LDA #$C1 \
		   JSR $FDED");
}

But it failed. So I tried like this.

void __fastcall__ callCOUT(void)
{
	__asm__	("		BIT $C082		\
					LDA #$C1		\
					JSR $FDED		\
					BIT	$C080");
}

Then it works.
Is there anyone to talk about this problem?