comparison code_part1/OSTC_code_asm_part1/oled_samsung.asm @ 167:cb055a7d75f3

+ Use overlay local vars. + Make all private functions static. + Merge calc_tissue 2sec and 1min + Merge sim_tissue 1min and 10min + Expose basic display utilities for c-code. + Prepare stand-alone utilities for p2_main.c testing platform. + New c utility: int read_custom_function(cf#)
author JeanDo
date Mon, 24 Jan 2011 23:31:57 +0100
parents fc699a7460e6
children 447390289f47
comparison
equal deleted inserted replaced
166:80de93d72a17 167:cb055a7d75f3
309 ;============================================================================= 309 ;=============================================================================
310 ; PLED_frame : draw a frame around current box with current color. 310 ; PLED_frame : draw a frame around current box with current color.
311 ; Inputs: win_top, win_leftx2, win_height, win_width, win_color1, win_color2 311 ; Inputs: win_top, win_leftx2, win_height, win_width, win_color1, win_color2
312 ; Outputs: (none) 312 ; Outputs: (none)
313 ; Trashed: WREG, PROD, aa_start:2, aa_end:2, win_leftx2, win_width:1 313 ; Trashed: WREG, PROD, aa_start:2, aa_end:2, win_leftx2, win_width:1
314 314 global PLED_frame
315 PLED_frame: 315 PLED_frame:
316 movff win_top,aa_start+0 ; Backup everything. 316 movff win_top,aa_start+0 ; Backup everything.
317 movff win_height,aa_start+1 317 movff win_height,aa_start+1
318 movff win_leftx2,aa_end+0 318 movff win_leftx2,aa_end+0
319 movff win_width,aa_end+1 319 movff win_width,aa_end+1
350 ; PLED_box : fills current box with current color. 350 ; PLED_box : fills current box with current color.
351 ; Inputs: win_top, win_leftx2, win_height, win_width, win_color1, win_color2 351 ; Inputs: win_top, win_leftx2, win_height, win_width, win_color1, win_color2
352 ; Outputs: (none) 352 ; Outputs: (none)
353 ; Trashed: WREG, PROD 353 ; Trashed: WREG, PROD
354 354
355 global PLED_box
355 PLED_box: 356 PLED_box:
356 ;---- Define Window ------------------------------------------------------ 357 ;---- Define Window ------------------------------------------------------
357 movff win_width,WREG 358 movff win_width,WREG
358 bcf STATUS,C 359 bcf STATUS,C
359 rlcf WREG 360 rlcf WREG
414 415
415 ;============================================================================= 416 ;=============================================================================
416 ; PLED_ClearScreen: An optimized version of PLEX_box, for full screen black. 417 ; PLED_ClearScreen: An optimized version of PLEX_box, for full screen black.
417 ; Trashed: WREG, PROD 418 ; Trashed: WREG, PROD
418 419
420 global PLED_ClearScreen
419 PLED_ClearScreen: 421 PLED_ClearScreen:
420 movlw 0x35 ; VerticalStartAddress HIGH:LOW 422 movlw 0x35 ; VerticalStartAddress HIGH:LOW
421 rcall PLED_CmdWrite 423 rcall PLED_CmdWrite
422 mullw 0 424 mullw 0
423 rcall PLED_DataWrite_PROD 425 rcall PLED_DataWrite_PROD