Index

Function Name: RDTIM

Purpose: Read internal clock
Call address: $FFDE (hex) 65502 (decimal)
Preparation:

	Registers:	none
	Memory:		system map
	Flags:		none
	Calls:		none
Results:
	Registers:	.A = low byte
			.X = middle byte
			.Y = high byte
	Memory:		none
	Flags:		none

Description: RDTIM reads the system software (jiffie) clock, which counts sixtieths (1/60) of a second. The timer is incremented during system IRQ processing (see UDTIM), and reset at the 24-hour point. RDTIM disables IRQ's, loads .A, .X and .Y with the contents of the 3-byte timer, and re-enables IRQ's.

EXAMPLE:

	JSR	$FFDE	;RDTIM