Index

Function Name: SETTIM

Purpose: Set internal clock
Call address: $FFDB (hex) 65499 (decimal)
Preparation:

	Registers:	.A = low byte
			.X = middle byte
			.Y = high byte
	Memory:		system map
	Flags:		none
	Calls:		none
Results:
	Registers:	none
	Memory:		TIME ($A0) updated
	Flags:		none

Description: SETTIM sets 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. SETTIM disables IRQ's, updates the three-byte timer with the contents of .A, .X and .Y, and re-enables IRQ's.

EXAMPLE:

	LDA	#0	;reset clock
	TAX
	TAY
	JSR	$FFDB	;SETTIM