Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!magnus.ircc.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!SIUCVMB.BITNET!ST6934 From: ST6934@SIUCVMB.BITNET Newsgroups: comp.sys.apple2 Subject: HyperC time function... Message-ID: <9103100008.AA01618@apple.com> Date: 9 Mar 91 23:56:30 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 29 Using the assembler, prodos = 0xbf00 time = 0x82 .entry _get_time _get_time: jsr prodos .byte time .word 0 ;dummy parameter table rts When I link this with a C program, it doesn't seem to call the clock card but returns the time at boot up using anchored variables: i.e., WORD _time @0xbf93; CHAR_hour @0xbf93; CHAR _min @0xbf94; EXTERN VOID _get_time(); VOID main() { _get_time(); printf("the time is %2d:%2d",_hour,_min); exit(); } Any suggestions? Andy. : st6934@siucvmb.bitnet