Path: chuka.playstation.co.uk!scea!greg_labrec@interactive.sony.com From: George_Bain@bc.sympatico.ca (George Bain) Newsgroups: scee.yaroze.programming.2d_graphics Subject: Kernal Management Date: 22 May 1997 08:32:28 GMT Organization: SCEA Net Yaroze News Lines: 50 Message-ID: <5m10as$shk2@scea> NNTP-Posting-Host: vanc01m02-73.bctel.ca Mime-Version: 1.0 Content-Type: Text/Plain; charset=US-ASCII X-Newsreader: WinVN 0.99.9 (Released Version) (x86 32bit) I need help with system timer on PlayStation. Does anyone know the equalivant of this code on PSX? I know I have to use GetRCnt(),StartRCnt(), etc but what is the argument for the root counter spec..and what is RCntCNT2 macros?? Lib book is not giving me enough info. Any advice would help..thanx Latah..... George Bain ************ CODE SNIP E.G ****************** #include #include #include #define TICKS (*(volatile unsigned long far *)(0x0040006Clu)) /* ---------------------- get_tick() ------------------ February 11,1997 */ unsigned long get_tick(void) { return TICKS; } /* ---------------------- main() ---------------------- February 11,1997 */ void main(void) { unsigned long t2; printf("starting\n"); t2=TICKS + 40; while ( !kbhit() ) { if ( get_tick() == t2 ) { printf("An important event accoured\n"); t2=TICKS + 40; } } getch(); printf("done\n"); } /* ------------------------------ EOF -------------------------------- */