[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
About CC65 inline assembly problem.
- Subject: About CC65 inline assembly problem.
- From: bluebird <mildstorm@gmail.com>
- Date: Sun, 6 Dec 2009 10:40:31 -0800 (PST)
- Complaints-to: groups-abuse@google.com
- Injection-info: f20g2000prn.googlegroups.com; posting-host=124.50.46.166; posting-account=59zgiAoAAAD1UBiNbwKTnEqZIAtVrM7Y
- Newsgroups: comp.sys.apple2
- Organization: http://groups.google.com
- User-agent: G2/1.0
- Xref: g2news1.google.com comp.sys.apple2:12915
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?