cc65 and SYS calls

Started by xlar54, February 20, 2008, 03:48 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xlar54

Anyone know how to perform SYS calls within cc65?

xlar54

Ah nevermind, figured it out...

for completeness:

void sys(int addr, int a, int x, int y)
{
   struct regs r;
   
   r.pc = addr;
   r.a = a;
   r.x = x;
   r.y = y;
   r.flags = 0x00;

   _sys(&r);
}