comparison 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
comparison
equal deleted inserted replaced
106:966ebf905514 107:a2b9eca1f396
403 movlw .159 403 movlw .159
404 movff WREG,box_temp+4 ; column right (0-159) 404 movff WREG,box_temp+4 ; column right (0-159)
405 call PLED_box 405 call PLED_box
406 return 406 return
407 407
408 PLED_clear_customview_surfacemode:
409 movlw .0
410 movff WREG,box_temp+0 ; Data
411 movlw .25
412 movff WREG,box_temp+1 ; row top (0-239)
413 movlw .121
414 movff WREG,box_temp+2 ; row bottom (0-239)
415 movlw .82
416 movff WREG,box_temp+3 ; column left (0-159)
417 movlw .159
418 movff WREG,box_temp+4 ; column right (0-159)
419 call PLED_box
420 return
421
408 PLED_clear_decoarea: 422 PLED_clear_decoarea:
409 movlw .0 423 movlw .0
410 movff WREG,box_temp+0 ; Data 424 movff WREG,box_temp+0 ; Data
411 movlw .54 425 movlw .54
412 movff WREG,box_temp+1 ; row top (0-239) 426 movff WREG,box_temp+1 ; row top (0-239)
2352 WIN_LEFT .1 2366 WIN_LEFT .1
2353 WIN_FONT FT_SMALL 2367 WIN_FONT FT_SMALL
2354 WIN_INVERT .0 ; Init new Wordprocessor 2368 WIN_INVERT .0 ; Init new Wordprocessor
2355 call PLED_standard_color 2369 call PLED_standard_color
2356 2370
2357 2371 lfsr FSR2,letter
2358 lfsr FSR2,letter 2372 OUTPUTTEXTH d'262' ; "OSTC "
2373 clrf EEADRH
2374 clrf EEADR ; Get Serial number LOW
2375 call read_eeprom ; read byte
2376 movff EEDATA,lo
2377 incf EEADR,F ; Get Serial number HIGH
2378 call read_eeprom ; read byte
2379 movff EEDATA,hi
2380
2381 bsf leftbind
2382 output_16
2383 movlw ' '
2384 movwf POSTINC2
2359 movlw 0x85 ; New aa_font_28 5 grays HW logo. 2385 movlw 0x85 ; New aa_font_28 5 grays HW logo.
2360 movwf POSTINC2 2386 movwf POSTINC2
2361 movlw 0x86 2387 movlw 0x86
2362 movwf POSTINC2 2388 movwf POSTINC2
2363 movlw ' '
2364 movwf POSTINC2
2365 movwf POSTINC2
2366
2367 OUTPUTTEXTH d'262' ; "OSTC "
2368 clrf EEADRH
2369 clrf EEADR ; Get Serial number LOW
2370 call read_eeprom ; read byte
2371 movff EEDATA,lo
2372 incf EEADR,F ; Get Serial number HIGH
2373 call read_eeprom ; read byte
2374 movff EEDATA,hi
2375
2376 bsf leftbind
2377 output_16
2378 movlw ' ' 2389 movlw ' '
2379 movwf POSTINC2 2390 movwf POSTINC2
2380 movlw 'V' 2391 movlw 'V'
2381 movwf POSTINC2 2392 movwf POSTINC2
2382 movlw softwareversion_x 2393 movlw softwareversion_x
2388 movlw softwareversion_y 2399 movlw softwareversion_y
2389 movwf lo 2400 movwf lo
2390 bsf leftbind 2401 bsf leftbind
2391 output_99x 2402 output_99x
2392 bcf leftbind 2403 bcf leftbind
2393
2394 call word_processor 2404 call word_processor
2395 return 2405 return
2396 2406
2397 PLED_divemode_menu_mask_first: ; Write Divemode menu1 mask 2407 PLED_divemode_menu_mask_first: ; Write Divemode menu1 mask
2398 ostc_debug 'o' ; Sends debug-information to screen if debugmode active 2408 ostc_debug 'o' ; Sends debug-information to screen if debugmode active