Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/pled_outputs.asm @ 107:a2b9eca1f396
customview for the surfacemode
author | heinrichsweikamp |
---|---|
date | Mon, 20 Dec 2010 18:30:16 +0100 |
parents | 966ebf905514 |
children | 2a31948dbcb7 |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/pled_outputs.asm Sun Dec 19 20:54:08 2010 +0100 +++ b/code_part1/OSTC_code_asm_part1/pled_outputs.asm Mon Dec 20 18:30:16 2010 +0100 @@ -405,6 +405,20 @@ call PLED_box return +PLED_clear_customview_surfacemode: + movlw .0 + movff WREG,box_temp+0 ; Data + movlw .25 + movff WREG,box_temp+1 ; row top (0-239) + movlw .121 + movff WREG,box_temp+2 ; row bottom (0-239) + movlw .82 + movff WREG,box_temp+3 ; column left (0-159) + movlw .159 + movff WREG,box_temp+4 ; column right (0-159) + call PLED_box + return + PLED_clear_decoarea: movlw .0 movff WREG,box_temp+0 ; Data @@ -2354,27 +2368,24 @@ WIN_INVERT .0 ; Init new Wordprocessor call PLED_standard_color - lfsr FSR2,letter + OUTPUTTEXTH d'262' ; "OSTC " + clrf EEADRH + clrf EEADR ; Get Serial number LOW + call read_eeprom ; read byte + movff EEDATA,lo + incf EEADR,F ; Get Serial number HIGH + call read_eeprom ; read byte + movff EEDATA,hi + + bsf leftbind + output_16 + movlw ' ' + movwf POSTINC2 movlw 0x85 ; New aa_font_28 5 grays HW logo. movwf POSTINC2 movlw 0x86 movwf POSTINC2 - movlw ' ' - movwf POSTINC2 - movwf POSTINC2 - - OUTPUTTEXTH d'262' ; "OSTC " - clrf EEADRH - clrf EEADR ; Get Serial number LOW - call read_eeprom ; read byte - movff EEDATA,lo - incf EEADR,F ; Get Serial number HIGH - call read_eeprom ; read byte - movff EEDATA,hi - - bsf leftbind - output_16 movlw ' ' movwf POSTINC2 movlw 'V' @@ -2390,7 +2401,6 @@ bsf leftbind output_99x bcf leftbind - call word_processor return