comparison src/tft.asm @ 434:a001f170a1f7

hunting a bug in the logbook (Day 3)
author heinrichsweikamp
date Wed, 22 Jun 2016 21:33:15 +0200
parents 929feb0da4f5
children 95ee78f4a974
comparison
equal deleted inserted replaced
433:b22c732f858a 434:a001f170a1f7
496 box_frame_color: 496 box_frame_color:
497 rcall TFT_set_color 497 rcall TFT_set_color
498 box_frame_color16: 498 box_frame_color16:
499 bra box_frame_common 499 bra box_frame_common
500 500
501 ;============================================================================= 501 ;;=============================================================================
502 ; Init for half_pixel_write 502 ;; Init for half_pixel_write
503 ; Set column register on TFT device, and current color. 503 ;; Set column register on TFT device, and current color.
504 ; Inputs: win_leftx2 504 ;; Inputs: win_leftx2
505 ; Outputs: win_color:2 505 ;; Outputs: win_color:2
506 ; Trashed: WREG, PROD 506 ;; Trashed: WREG, PROD
507 global init_pixel_write 507 ; global init_pixel_write
508 init_pixel_write: 508 ;init_pixel_write:
509 movf win_leftx2,W 509 ; movf win_leftx2,W
510 mullw 2 510 ; mullw 2
511 rcall pixel_write_col320 ; Start Address Vertical (.0 - .319) 511 ; rcall pixel_write_col320 ; Start Address Vertical (.0 - .319)
512 setf WREG 512 ; setf WREG
513 bra TFT_set_color 513 ; bra TFT_set_color
514 514
515 ;----------------------------------------------------------------------------- 515 ;-----------------------------------------------------------------------------
516 ; Writes two half-pixels at position (win_top,win_leftx2) 516 ; Writes two half-pixels at position (win_top,win_leftx2)
517 ; Inputs: win_leftx2, win_top, win_color:2 517 ; Inputs: win_leftx2, win_top, win_color:2
518 ; Trashed: WREG, PROD 518 ; Trashed: WREG, PROD