Mercurial > public > hwos_code
comparison src/menu_processor.asm @ 300:5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
author | Janos Kovacs <kovjanos@gmail.com> |
---|---|
date | Sun, 31 May 2015 21:24:16 +0200 |
parents | 653a3ab08062 |
children | ca32cf2435c6 |
comparison
equal
deleted
inserted
replaced
299:6c4800af27ac | 300:5ad479f2a868 |
---|---|
90 call TFT_clear_divemode_menu ; ... Clear the menu! | 90 call TFT_clear_divemode_menu ; ... Clear the menu! |
91 | 91 |
92 ; Draw one frame around the divemode menu | 92 ; Draw one frame around the divemode menu |
93 extern TFT_divemask_color | 93 extern TFT_divemask_color |
94 call TFT_divemask_color | 94 call TFT_divemask_color |
95 WIN_FRAME_COLOR16 divemode_menu_row, divemode_menu_lower, divemode_menu_left ,divemode_menu_right ; top, bottom, left, right | 95 WIN_FRAME_COLOR16 dm_menu_row, dm_menu_lower, dm_menu_left ,dm_menu_right ; top, bottom, left, right |
96 call TFT_standard_color | 96 call TFT_standard_color |
97 | 97 |
98 bra menu_processor1 ; Yes, skip some lines here | 98 bra menu_processor1 ; Yes, skip some lines here |
99 | 99 |
100 menu_processor0: | 100 menu_processor0: |
434 bra menu_vertical_2 ; redraw all lines... | 434 bra menu_vertical_2 ; redraw all lines... |
435 | 435 |
436 ;----------------------------------------------------------------------------- | 436 ;----------------------------------------------------------------------------- |
437 | 437 |
438 menu_draw_lines_divemode: | 438 menu_draw_lines_divemode: |
439 movlw divemode_menu_item1_row | 439 movlw dm_menu_item1_row |
440 movff WREG,win_top | 440 movff WREG,win_top |
441 movlw divemode_menu_item1_column | 441 movlw dm_menu_item1_column |
442 movff WREG,win_leftx2 | 442 movff WREG,win_leftx2 |
443 clrf start_item | 443 clrf start_item |
444 movff item_max,menupos4 ; Copy item_max for divemode cursor routine | 444 movff item_max,menupos4 ; Copy item_max for divemode cursor routine |
445 bra menu_draw_lines_2 | 445 bra menu_draw_lines_2 |
446 | 446 |
576 | 576 |
577 movlw .3 | 577 movlw .3 |
578 cpfseq menu_item ; At pos 4? | 578 cpfseq menu_item ; At pos 4? |
579 bra menu_draw_line_none2 ; No | 579 bra menu_draw_line_none2 ; No |
580 | 580 |
581 movlw divemode_menu_item4_row | 581 movlw dm_menu_item4_row |
582 movff WREG,win_top ; Reset row | 582 movff WREG,win_top ; Reset row |
583 movlw divemode_menu_item4_column | 583 movlw dm_menu_item4_column |
584 movff WREG,win_leftx2 ; New column | 584 movff WREG,win_leftx2 ; New column |
585 bra menu_draw_line_none2 ; Done. | 585 bra menu_draw_line_none2 ; Done. |
586 | 586 |
587 ;----------------------------------------------------------------------------- | 587 ;----------------------------------------------------------------------------- |
588 ; Put a mark in front of the current line | 588 ; Put a mark in front of the current line |