Mercurial > public > hwos_code
comparison src/menu_processor.asm @ 125:53409476a05f
minor
author | heinrichsweikamp |
---|---|
date | Sun, 29 Jun 2014 14:21:23 +0200 |
parents | f3062a611eef |
children | dcf3e08f31ac |
comparison
equal
deleted
inserted
replaced
124:40ff64d60054 | 125:53409476a05f |
---|---|
120 | 120 |
121 ;============================================================================= | 121 ;============================================================================= |
122 ; (re-)draw menu title. | 122 ; (re-)draw menu title. |
123 ; | 123 ; |
124 menu_processor_title: | 124 menu_processor_title: |
125 WIN_BOX_BLACK .2,.23,.0,.160 ; Clear Menu title | |
126 MENU_TITLE_FONT .0, .2 ; Menu title positionning | |
127 | |
125 btfss menu_flags,0 ; Static or dynmic title ? | 128 btfss menu_flags,0 ; Static or dynmic title ? |
126 bra menu_processor_static_title | 129 bra menu_processor_static_title |
127 | 130 |
128 lfsr FSR2,buffer | |
129 rcall menu_processor_call_title ; add gas, detail and color. | 131 rcall menu_processor_call_title ; add gas, detail and color. |
130 bra menu_processor_title_1 | 132 bra menu_processor_title_1 |
131 | 133 |
132 menu_processor_static_title: | 134 menu_processor_static_title: |
133 movff menu_title+0,FSR1L ; Just copy string. | 135 movff menu_title+0,FSR1L ; Just copy string. |
134 movff menu_title+1,FSR1H | 136 movff menu_title+1,FSR1H |
135 call strcpy_text | 137 call strcpy_text |
136 | 138 |
137 menu_processor_title_1: | 139 menu_processor_title_1: |
138 WIN_BOX_BLACK .2,.23,.0,.160 ; Clear Menu title | |
139 MENU_TITLE_FONT .0, .2 ; Menu title positionning | |
140 WIN_COLOR color_greenish | 140 WIN_COLOR color_greenish |
141 movf FSR2L,W ; Get title length | 141 movf FSR2L,W ; Get title length |
142 mullw .9 ; Convert to half pixels | 142 mullw .9 ; Convert to half pixels |
143 bcf STATUS,C ; Clear carry | 143 bcf STATUS,C ; Clear carry |
144 rrcf PRODL ; /2 | 144 rrcf PRODL ; /2 |