comparison src/color_processor.asm @ 436:95ee78f4a974

no screen reboot after logbook exit
author heinrichsweikamp
date Fri, 24 Jun 2016 12:51:14 +0200
parents 653a3ab08062
children b455b31ce022
comparison
equal deleted inserted replaced
435:0590b8fafc8d 436:95ee78f4a974
150 ; Loop sending pixel color 150 ; Loop sending pixel color
151 incf img_count+1 ; Because we decrement first, should add one here ! 151 incf img_count+1 ; Because we decrement first, should add one here !
152 bsf tft_rs,0 ; RS_H ; Data 152 bsf tft_rs,0 ; RS_H ; Data
153 movff PRODH,PORTA ; Move high byte to PORTA 153 movff PRODH,PORTA ; Move high byte to PORTA
154 movff PRODL,PORTH ; Move low byte to PORTH 154 movff PRODL,PORTH ; Move low byte to PORTH
155 bcf INTCON,GIE
155 color_image_loop_pixel: 156 color_image_loop_pixel:
156 bcf tft_nwr,0 ; WR_L 157 bcf tft_nwr,0 ; WR_L
157 bsf tft_nwr,0 ; WR_H ; Tick 158 bsf tft_nwr,0 ; WR_H ; Tick
158 decfsz img_count+0 159 decfsz img_count+0
159 bra color_image_loop_pixel 160 bra color_image_loop_pixel
160 decfsz img_count+1 161 decfsz img_count+1
161 bra color_image_loop_pixel 162 bra color_image_loop_pixel
163 bsf INTCON,GIE
162 164
163 ; And count (on a 24bit counter) 165 ; And count (on a 24bit counter)
164 clrf WREG ; Make a 24bit decrement. 166 clrf WREG ; Make a 24bit decrement.
165 decf img_pixels+0 167 decf img_pixels+0
166 subwfb img_pixels+1,F 168 subwfb img_pixels+1,F