comparison code_part1/OSTC_code_asm_part1/menu_reset.asm @ 83:3e351e25f5d1

adding anti-aliased fonts frame and merging some patches from Jeando
author heinrichsweikamp
date Tue, 07 Dec 2010 22:36:19 +0100
parents 69c462400279
children b40a0a6284da
comparison
equal deleted inserted replaced
82:bc3092c41335 83:3e351e25f5d1
344 movf TABLAT, W ; Low byte in WREG, 344 movf TABLAT, W ; Low byte in WREG,
345 tblrd*+ 345 tblrd*+
346 movff TABLAT, hi ; High byte in hi 346 movff TABLAT, hi ; High byte in hi
347 rcall reset_customfunction ; saves default and current value 347 rcall reset_customfunction ; saves default and current value
348 bra cf_bank0_loop 348 bra cf_bank0_loop
349 349
350 reset_all_cf_bank1: 350 reset_all_cf_bank1:
351 movlw d'1' 351 movlw d'1'
352 movwf EEADRH ; EEPROM BANK 1 !! 352 movwf EEADRH ; EEPROM BANK 1 !!
353 movlw d'127' ; address of low byte of first custom function 353 movlw d'127' ; address of low byte of first custom function
354 movwf EEADR 354 movwf EEADR
355 355
356 cf_bank1_loop: 356 cf_bank1_loop:
357 ; Did we already read another 32 (decimal) bytes ? 357 ; Did we already read another 32 (decimal) bytes ?
358 movf TBLPTRL,W 358 movf TBLPTRL,W
359 sublw LOW (cf_default_table+.128) 359 sublw LOW (cf_default_table+.128)
360 bz cf_bank1_end 360 bz cf_bank1_end
366 rcall reset_customfunction ; saves default and current value 366 rcall reset_customfunction ; saves default and current value
367 bra cf_bank1_loop 367 bra cf_bank1_loop
368 368
369 cf_bank1_end: 369 cf_bank1_end:
370 clrf EEADRH ; EEPROM BANK 0 ! 370 clrf EEADRH ; EEPROM BANK 0 !
371 371
372 ;call reset_external_eeprom ; delete profile memory 372 ;call reset_external_eeprom ; delete profile memory
373 goto restart ; all reset, quit to surfmode 373 goto restart ; all reset, quit to surfmode
374 374
375 ; Write the four bytes lo:hi:lo:(hi w/o type flags) into EEPROM 375 ; Write the four bytes lo:hi:lo:(hi w/o type flags) into EEPROM
376 ; Don't change hi:lo values... 376 ; Don't change hi:lo values...