comparison code_part1/OSTC_code_asm_part1/menu_custom.asm @ 7:5c4ba624165d

cf32 bug fixed
author heinrichsweikamp
date Wed, 24 Feb 2010 13:33:17 +0100
parents 96a35aeda5f2
children 68825abc35f7
comparison
equal deleted inserted replaced
6:ee55e8d66102 7:5c4ba624165d
111 return ; return 111 return ; return
112 112
113 menu_custom_functions_page2: 113 menu_custom_functions_page2:
114 movlw d'154' ; start of custom function descriptors 114 movlw d'154' ; start of custom function descriptors
115 movwf customfunction_temp1 115 movwf customfunction_temp1
116 bsf customfunction_page ; Use Page I... 116 bsf customfunction_page ; Use Page II...
117 movlw d'1'
118 movwf EEADRH
119 bra menu_custom_functions0 117 bra menu_custom_functions0
120 118
121 menu_custom_functions: 119 menu_custom_functions:
122 movlw d'36' ; start of custom function descriptors 120 movlw d'36' ; start of custom function descriptors
123 movwf customfunction_temp1 121 movwf customfunction_temp1
124 bcf customfunction_page ; Use Page I... 122 bcf customfunction_page ; Use Page I...
125 clrf EEADRH
126 123
127 menu_custom_functions0: 124 menu_custom_functions0:
128 bsf leftbind 125 bsf leftbind
129 call PLED_ClearScreen 126 call PLED_ClearScreen
130 movlw d'1' 127 movlw d'1'
151 148
152 menu_custom_functions11: 149 menu_custom_functions11:
153 WIN_INVERT .0 ; Init new Wordprocessor 150 WIN_INVERT .0 ; Init new Wordprocessor
154 151
155 menu_custom_functions1: 152 menu_custom_functions1:
153 movlw d'1'
154 btfss customfunction_page ; Use Page II...
155 movlw d'0'
156 movwf EEADRH
157
156 clrf timeout_counter2 158 clrf timeout_counter2
157 bcf menubit2 159 bcf menubit2
158 bcf menubit3 160 bcf menubit3
159 WIN_LEFT .20 161 WIN_LEFT .20
160 WIN_TOP .35 162 WIN_TOP .35
172 movwf POSTINC2 174 movwf POSTINC2
173 movlw ' ' 175 movlw ' '
174 movwf POSTINC2 176 movwf POSTINC2
175 call word_processor 177 call word_processor
176 178
177 ; movlw d'16'
178 ; movwf temp1
179 ; WIN_LEFT .40
180 ; WIN_TOP .35
181 ; call PLED_display_clear_common_y1
182 ;
183 movf customfunction_temp1,W ; start of custom function descriptors 179 movf customfunction_temp1,W ; start of custom function descriptors
184 addwf decodata+0,W ; add # of current custom function, place result in wreg 180 addwf decodata+0,W ; add # of current custom function, place result in wreg
185 call displaytext1 ; shows descriptor 181 call displaytext1 ; shows descriptor
186 182
187 movlw binary_cf1 183 movlw binary_cf1