Timex M851 Watch User Manual


 
M851 WristApp Design Guide Rev 1.2
Timex Corporation 107
;--------------------------------------------------------------
ld IY, [CORECurrentASDAddress]
ld A, [IY + CNTDATALOOFFSET]
ld B, [IY + CNTDATAHIOFFSET]
ld IX, #LCDBIGCHARDMCOL8
LCD_DISP_BIG_3DIGIT_DM_DATA_NO_LSD_SUP
ret
cntDisplayCountDirection
IF @DEF('SUBROUTINE')
UNDEF SUBROUTINE
ENDIF
DEFINE SUBROUTINE "'cntDisplayCountDirection'"
GLOBAL cntDisplayCountDirection
cntDisplayCountDirection:
; Get the status flags and check the counting direction.
ld IY, [CORECurrentASDAddress]
ld A, [IY + CNTFLAGSOFFSET]
bit A, #bCNTCountDown
jr Z, cntDisplayDirectionArrowUp
; Display "COUNT DOWN" on the main DM.
LCD_DISP_SMALL_DM_MSG_COUNT_DOWN
; Display arrow down on SDM.
jr cntDisplayArrowDownOnSDM ; **EXTERNAL JUMP
cntDisplayDirectionArrowUp:
; Display "COUNT UP" on the main DM.
LCD_DISP_SMALL_DM_MSG_COUNT_UP
; Display arrow up on SDM.
jr cntDisplayArrowUpOnSDM ; **EXTERNAL JUMP
cntClearL2AndSDM
IF @DEF('SUBROUTINE')
UNDEF SUBROUTINE
ENDIF
DEFINE SUBROUTINE "'cntClearL2AndSDM'"
GLOBAL cntClearL2AndSDM
cntClearL2AndSDM:
; Clear SDM.
LCD_CLEAR_UPPER_DM
; Clear line 2.
LCD_CLR_MAIN_DM_LINE2
ret
cntSetRedisplayAndReqBlink
IF @DEF('SUBROUTINE')
UNDEF SUBROUTINE
ENDIF
DEFINE SUBROUTINE "'cntSetRedisplayAndReqBlink'"
GLOBAL cntSetRedisplayAndReqBlink
cntSetRedisplayAndReqBlink:
CORE_REQ_BLINK_4HZ