Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/menu_settime.asm @ 842:454ef5c2e6aa default tip
Bugfix: Auto-SP did not show >9m for some 2C hardware versions in German language firmware
Make year settings until 2040 possible (This is likely the final release for this model)
| author | heinrichsweikamp |
|---|---|
| date | Sat, 29 Nov 2025 14:11:07 +0100 |
| parents | 8d73c9dcf851 |
| children |
comparison
equal
deleted
inserted
replaced
| 841:8d73c9dcf851 | 842:454ef5c2e6aa |
|---|---|
| 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'31' ; calendar until 2031 | 265 movlw d'40' ; calendar until 2040 |
| 266 cpfsgt year | 266 cpfsgt year |
| 267 bra set_time_refresh_x | 267 bra set_time_refresh_x |
| 268 movlw d'23' | 268 movlw d'25' |
| 269 movwf year ; Set Year to 2023 | 269 movwf year ; Set Year to 2025 |
| 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 |
