Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/menu_settime.asm @ 837:23ed973d4fb9
Disable DEBUG mode, Too many users turned this on in the last years and then
complained about "letters on the screen"....
Allow manual (in the menu) year setting >2020
author | heinrichsweikamp |
---|---|
date | Fri, 01 Jan 2021 19:57:21 +0100 |
parents | 30136fc61392 |
children | 8d73c9dcf851 |
comparison
equal
deleted
inserted
replaced
836:b317df6bc367 | 837:23ed973d4fb9 |
---|---|
260 movlw d'1' | 260 movlw d'1' |
261 movwf month | 261 movwf month |
262 bra set_time_refresh_x | 262 bra set_time_refresh_x |
263 add_year: | 263 add_year: |
264 incf year,F | 264 incf year,F |
265 movlw d'22' ; calendar until 2022 | 265 movlw d'29' ; calendar until 2029 |
266 cpfsgt year | 266 cpfsgt year |
267 bra set_time_refresh_x | 267 bra set_time_refresh_x |
268 movlw d'10' | 268 movlw d'21' |
269 movwf year ; Set Year to 2010 | 269 movwf year ; Set Year to 2021 |
270 | 270 |
271 set_time_refresh_x: | 271 set_time_refresh_x: |
272 call set_time_refresh | 272 call set_time_refresh |
273 call wait_switches ; Waits until switches are released, resets flag if button stays pressed! | 273 call wait_switches ; Waits until switches are released, resets flag if button stays pressed! |
274 return | 274 return |