;Alarm Info

;Avigo has 4 type pf wake-up alarms:

;ScheduleAlarm       (1st Priority)
;DailyAlarm          (2st Priority)
;DailyUpdateAlarm    (Last Priority)
;OptimizeMemoryAlarm (3rd Priority)

;The AlarmUpdate alarm always happens at 23.59 this alarm is used to check and
;set a alarm for the next day. If there is no new alarm to set it will set the
;AlarmUpdate Alarm again at 23.59

;To set or reset the Daily alarm or MemoryOptimize Schedule use call function
;SetSpecialAlarm (E holds AlarmType and HL must points to a time structure when
;setting the alarm)

;AlarmTypes:

satSetDailyAlarm:	.equ	$01
satSetOptimizeAlarm:	.equ	$04
satResetDailyAlarm:	.equ	$41
satResetOptimizeAlarm:	.equ	$44

;Notes:

;There is no function to get daily alarmTime. It is located at system variable $C093
;so to read it make a pointer point to $C093 or read the contents of $C093/4/5 directly

;When there is no daily alarm set the times hour is $FF

;Never set the Alarm time directly at $C093.

;The Optimize alarm is only enabled or disabled and not set
;to the supplied time


;examples:

;Get Daily Alarm time

;	ld	hl,$C093	;
;	ld	a,(hl)
;	inc	a		;sets Z if it was $FF
;	jp	z,NoTime
;	jp	GotTime

;Reset Daily Alarm

;	ld	a,satResetDailyAlarm	;AlarmType
;	ld	bc,$4639		;SetSpecialAlarm
;	call	$3000			;BankedOSCall


;enable daily Alarm

;Time:	.byte 7,00,0		;7.00 am

;	ld	a,satSetDailyAlarm	;AlarmType
;	ld	hl,Time			;Pointer to timestructure
;	ld	bc,$4639		;SetSpecialAlarm
;	call	$3000			;BankedOSCall


