Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: orange on December 23, 2013, 03:52:12 PM

Title: SAS/C compiling & linking
Post by: orange on December 23, 2013, 03:52:12 PM
I'm trying to compile this simple program:

include
main ()
{
  char *p = 0xbfd100;
  *p = 4;
 TimeDelay(0,0,31000);
  *p = 0;
 return (0);
}

It compiles nicely (minor warning about pointer type mismatch), but I don't know how to link it.
slink asks about DEFINE value for: __XCOVF _TimeDelay and ___base ?
If I enter some values, program gurus with #80000003
How to link it?
Title: Re: SAS/C compiling & linking
Post by: Bobo68 on December 23, 2013, 04:09:16 PM
compiles through "starter_project"?
Title: Re: SAS/C compiling & linking
Post by: orange on December 23, 2013, 04:53:33 PM
Quote from: Bobo68;755097
compiles through "starter_project"?


thanks Bobo, that works like a charm.

edit: I seem to have another problem now, how to make a pause/delay of exactly N miliseconds?