Commodore 128 Alive!

Commodore 128 => 128 programmers => C / Other => Topic started by: xlar54 on February 20, 2008, 03:48 AM

Title: cc65 and SYS calls
Post by: xlar54 on February 20, 2008, 03:48 AM
Anyone know how to perform SYS calls within cc65?
Title: Re: cc65 and SYS calls
Post by: xlar54 on February 20, 2008, 04:12 AM
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);
}
EhPortal 1.34 © 2025, WebDev