EasyManua.ls Logo

Atari ST series - Page 269

Atari ST series
420 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Tgettime
Get GEMDOS Time
Tgettime()
Opcode = 44 ($2C)
This function is used to get the GEMDOS version of the current time.
C macro format
int time;
time = Tgettime();
Machine language format
move.w #$2C, - (sp)
trap #1
addq.l #2,sp
Inputs
None
Results
DO time word A 16-bit code that indicates the time.
Interpretation of GEMDOS time:
Bit Number Description
0-4 Seconds divided by 2
5-10 Minutes
11-15 Hours
Range
0-29
0-59
0-23
See also
Tsettime(), Tgetdate(), Tsetdate()
261