📄 alarm.inc
字号:
;SWATCHDSLine0: db ' ',LBracketChar,'秒表',RBracketChar,' ',0 ;【秒表】
;SWATCHDSLine0: db ' [秒表] ',0 ;【秒表】
;SWATCHDSLine1: db '停止',0 ; 停止
;SWATCHDSLine2: db '启动',0 ; 启动
;SWATCHDSLine3: db '暂停',0 ; 暂停
;[T]----------------------[T]
; 定时器显示画面文字表 :
;[T]----------------------[T]
;TIMERDSLine0: db LBracketChar,'定时器',RBracketChar,' ',0 ;【定时器】
;TIMERDSLine0: db ' [定时器] ',0 ;【定时器】
;[T]----------------------------[T]
; 2000年计时器显示画面文字表 :
;[T]----------------------------[T]
AD2000DSLine0_1:db '距离公元',0 ; 距离公元
AD2000DSLine0_2:db '公元',0 ; 公元
AD2000DSLine1: db ' 年 月 日',0 ; 年 月 日
AD2000DSLine2_1:db ' 还剩下 天',0 ; 还剩下 天
AD2000DSLine2_2:db ' 已超过 天',0 ; 已超过 天
AD2000DSLine2_3:db '------就是今天------',0 ; ---就是今天---
tebeire: db ' 倒数计日',0
;[V]----------------------[V]
; 半秒钟事件处理程序表 :
;[V]----------------------[V]
THSecFuncTable: dw THSecMAlarm-1 ; Half-second function for Multi-alarm.
dw THSecSchedule-1 ; Half-second function for Schedule.
dw THsecHAlarm-1 ; Half-second function for Hourly alarm.
dw THSecCalendar-1 ; Half-second function for Calendar.
dw THSecWTime-1 ; Half-second function for World time.
dw THSecSWatch-1 ; Half-second function for Stop-watch.
dw THSecTimer-1 ; Half-second function for Timer.
dw THSecAD2K-1 ; Half-second function for AD2000.
;dw ADDForSec-1 ;SuXinChun
;[T]----------------------------[T]
; 有效 key 的 key code table :
;[T]----------------------------[T]
ActiveKeyTable:
;;yiadd 2-8-28 9:25
db pgup
db pgdown
db UpKey ; "UP" key code.
db DownKey ; "DOWN" key code.
db LeftKey ; "LEFT" key code.
db RightKey ; "RIGHT" key code.
db EnterKey ; "ENTER" key code.
db EscKey ; "ESCAPE" key code.
db DelKey ; "*" key code.
db BKey ; "1" key code.
db NKey ; "2" key code.
db MKey ; "3" key code.
db GKey ; "4" key code.
db HKey ; "5" key code.
db JKey ; "6" key code.
db TKey ; "7" key code.
db YKey ; "8" key code.
db NullKey ; End of key code table.
;[V]--------------------------------------------------[V]
; Alarm mode menu 的有效 key process routine table :
;[V]--------------------------------------------------[V]
;KeyProcTable0: dw PrevItem-1 ; "UP" key process routine.
; dw NextItem-1 ; "DOWN" key process routine.
; dw NullProc-1 ; "LEFT" key process routine.
; dw NullProc-1 ; "RIGHT" key process routine.
; dw EnterSub-1 ; "ENTER" key process routine.
; dw BacktoMainMenu-1 ; "ESCAPE" key process routine.
; dw NullProc-1 ; "*" key process routine.
; dw NumberEnterSub-1 ; Number key(1~8) process routine.
;[V]----------------------------------------[V]
; 依照 Function 选取不同的按键处理程序表 :
;[V]----------------------------------------[V]
KeyProcFuncTab: dw KeyProcTable1,KeyProcTable2,KeyProcTable3,KeyProcTable4
dw KeyProcTable5,KeyProcTable6,KeyProcTable7,KeyProcTable8
;[V]-------------------------------------------------[V]
; Alarm function 的有效 key process routine table :
;[V]-------------------------------------------------[V]
KeyProcTable1:
dw NullProc-1
dw NullProc-1
dw MALMSIAd-1 ; "UP" key process routine.
dw MALMSISb-1 ; "DOWN" key process routine.
dw MALMPvSI-1 ; "LEFT" key process routine.
dw MALMNxSI-1 ; "RIGHT" key process routine.
dw MALMEnter-1 ; "ENTER" key process routine.
dw MALMEscape-1 ; "ESCAPE" key process routine.
dw NullProc-1 ; "*" key process routine.
;[V]----------------------------------------------------[V]
; Schedule function 的有效 key process routine table :
;[V]----------------------------------------------------[V]
KeyProcTable2: ;dw ScheSIAd-1 ; "UP" key process routine.
;dw ScheSISb-1 ; "DOWN" key process routine.
;dw SchePvSI-1 ; "LEFT" key process routine.
;dw ScheNxSI-1 ; "RIGHT" key process routine.
;dw ScheEnter-1 ; "ENTER" key process routine.
;dw ScheEscape-1 ; "ESCAPE" key process routine.
;dw ScheStar-1 ; "*" key process routine.
;[V]--------------------------------------------------------[V]
; Hourly alarm function 的有效 key process routine table :
;[V]--------------------------------------------------------[V]
KeyProcTable3:
dw NullProc-1
dw NullProc-1
dw ToggleHourly-1 ; "UP" key process routine.
dw ToggleHourly-1 ; "DOWN" key process routine.
dw NullProc-1 ; "LEFT" key process routine.
dw NullProc-1 ; "RIGHT" key process routine.
dw SelectHourly-1 ; "ENTER" key process routine.
dw PrevLevel-1 ; "ESCAPE" key process routine.
dw NullProc-1 ; "*" key process routine.
;[V]----------------------------------------------------[V]
; Calendar function 的有效 key process routine table :
;[V]----------------------------------------------------[V]
KeyProcTable4:
dw yueli_pgup-1
dw yueli_pgdown-1
dw BrowsePM-1 ; "UP" key process routine.
dw BrowseNM-1 ; "DOWN" key process routine.
dw BrowsePD-1 ; "LEFT" key process routine.
dw BrowseND-1 ; "RIGHT" key process routine.
dw NullProc-1 ; "ENTER" key process routine.
dw QuitBrowse-1 ; "ESCAPE" key process routine.
dw NullProc-1 ; "*" key process routine.
;[V]------------------------------------------------------[V]
; World time function 的有效 key process routine table :
;[V]------------------------------------------------------[V]
KeyProcTable5:
dw NullProc-1
dw NullProc-1
dw DECTZone-1 ; "UP" key process routine.
dw INCTZone-1 ; "DOWN" key process routine.
dw NullProc-1 ; "LEFT" key process routine.
dw NullProc-1 ; "RIGHT" key process routine.
dw NullProc-1 ; "ENTER" key process routine.
dw PrevLevel-1 ; "ESCAPE" key process routine.
dw NullProc-1 ; "*" key process routine.
;[V]------------------------------------------------------[V]
; Stop-watch function 的有效 key process routine table :
;[V]------------------------------------------------------[V]
KeyProcTable6:
dw NullProc-1
dw NullProc-1
dw NullProc-1 ; "UP" key process routine.
dw SWatchPaGoZi-1 ; "DOWN" key process routine.
dw NullProc-1 ; "LEFT" key process routine.
dw NullProc-1 ; "RIGHT" key process routine.
dw SWatchStSp-1 ; "ENTER" key process routine.
dw PrevLevel-1 ; "ESCAPE" key process routine.
dw NullProc-1 ; "*" key process routine.
;[V]-------------------------------------------------[V]
; Timer function 的有效 key process routine table :
;[V]-------------------------------------------------[V]
KeyProcTable7:
dw NullProc-1
dw NullProc-1
dw TMRSIAd-1 ; "UP" key process routine.
dw TMRSISb-1 ; "DOWN" key process routine.
dw TMRPvSI-1 ; "LEFT" key process routine.
dw TMRNxSI-1 ; "RIGHT" key process routine.
dw TMRStSp-1 ; "ENTER" key process routine.
dw TMREscape-1 ; "ESCAPE" key process routine.
dw NullProc-1 ; "*" key process routine.
;[V]--------------------------------------------------[V]
; AD2000 function 的有效 key process routine table :
;[V]--------------------------------------------------[V]
KeyProcTable8:
dw NullProc-1
dw NullProc-1
dw AD2KSIAd-1 ; "UP" key process routine.
dw AD2KSISb-1 ; "DOWN" key process routine.
dw AD2KPvSI-1 ; "LEFT" key process routine.
dw AD2KNxSI-1 ; "RIGHT" key process routine.
dw AD2KEnter-1 ; "ENTER" key process routine.
dw AD2KEscape-1 ; "ESCAPE" key process roucine.
dw NullProc-1 ; "*" key process routine.
;[V]----------------------[V]
; Initial screen table :
;[V]----------------------[V]
InitScreenTable:dw InitScnMAlarm-1 ; Initial screen for Multi-alarm.
dw InitScnSche-1 ; Initial screen for Schedule.
dw InitScnHAlarm-1 ; Initial screen for Hourly alarm.
dw InitScnCal-1 ; Initial screen for Calendar.
dw InitScnWTime-1 ; Initial screen for World time.
dw InitScnSWatch-1 ; Initial screen for Stop-watch.
dw InitScnTimer-1 ; Initial screen for Timer.
dw InitScnAD2K-1 ; Initial screen for AD2000.
MenuLibData .section ;menu bank
alarm_menu:
dw 0
db 4
db '1.时间日期',0,0,9
db '2.世界时间',0,0,5
db '3.闹铃设置',0,0,1
;db '4.万年历',0,0,4
db '4.倒数计日',0,0,8
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -