ST6934@SIUCVMB.BITNET (03/10/91)
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
ST6934@SIUCVMB.BITNET (03/10/91)
Sorry about that; got the anchored variables mixed up. Should be: WORD _time @0xbf02; CHAR _hour @0xbf03; CHAR _min @0xbf02; It works fine now. Andy. st6934@siucvmb.bitnet