comparison code_part1/OSTC_code_asm_part1/menu.asm @ 592:cda5b45b953f

NEW: Deco mode "pSCR-GF": Computes deco and CNS based on pSCR parameters (CF62/63)
author heinrichsweikamp
date Mon, 28 May 2012 17:54:43 +0200
parents fbd5e2b75a63
children 6e456a6398e0
comparison
equal deleted inserted replaced
591:2966548fbe70 592:cda5b45b953f
200 bsf deco_mode_changed ; Set flag 200 bsf deco_mode_changed ; Set flag
201 read_int_eeprom d'34' ; Read deco data 201 read_int_eeprom d'34' ; Read deco data
202 incf EEDATA,F 202 incf EEDATA,F
203 203
204 toggle_decotype0: 204 toggle_decotype0:
205 movlw d'6' ; number of different modes 205 movlw d'7' ; number of different modes
206 cpfseq EEDATA 206 cpfseq EEDATA
207 bra toggle_decotype1 207 bra toggle_decotype1
208 clrf EEDATA 208 clrf EEDATA
209 209
210 toggle_decotype1: 210 toggle_decotype1:
240 bra show_decotype6 240 bra show_decotype6
241 DISPLAYTEXT .152 ; L16-GF OC =4 241 DISPLAYTEXT .152 ; L16-GF OC =4
242 return 242 return
243 show_decotype6: 243 show_decotype6:
244 decfsz EEDATA,F 244 decfsz EEDATA,F
245 return 245 bra show_decotype7
246 DISPLAYTEXT .236 ; L16-GF CC =5 246 DISPLAYTEXT .236 ; L16-GF CC =5
247 return
248 show_decotype7:
249 decfsz EEDATA,F
250 return
251 DISPLAYTEXT .226 ; pSCR-GF =6
247 return 252 return
248 253
249 exit_setup_menu: 254 exit_setup_menu:
250 btfss deco_mode_changed ; Was the decomode changed in Setup menu? 255 btfss deco_mode_changed ; Was the decomode changed in Setup menu?
251 goto restart ; No, restart to surfacemode 256 goto restart ; No, restart to surfacemode
259 WIN_INVERT .0 ; Init new Wordprocessor 264 WIN_INVERT .0 ; Init new Wordprocessor
260 265
261 read_int_eeprom d'34' ; Read deco data 266 read_int_eeprom d'34' ; Read deco data
262 267
263 movlw d'7' ; length of description text 268 movlw d'7' ; length of description text
264 mulwf EEDATA ; Multiply with Decomode 0-5 (5=Spare) 269 mulwf EEDATA ; Multiply with Decomode 0-6
265 270
266 movf PRODL,W 271 movf PRODL,W
267 addlw .314-.256 ; Description text offset 272 addlw .314-.256 ; Description text offset
268 movwf menupos ; Used as loop counter temp 273 movwf menupos ; Used as loop counter temp
269 274