comparison src/aa_wordprocessor.asm @ 189:e79bc535ef9e

ignore un-calibrated sensors even if they become valid
author heinrichsweikamp
date Wed, 29 Oct 2014 12:53:01 +0100
parents 11d4fc797f74
children 653a3ab08062
comparison
equal deleted inserted replaced
188:ebc28381f17d 189:e79bc535ef9e
339 ; Manage 000 special case too: 339 ; Manage 000 special case too:
340 andlw 0xE0 ; Select color bits 340 andlw 0xE0 ; Select color bits
341 bz aa_decode_13 ; That's a 000 ! 341 bz aa_decode_13 ; That's a 000 !
342 342
343 ; Apply reverse video, in a reversed way 343 ; Apply reverse video, in a reversed way
344 btfss win_invert,0 ; Inverse video mode ? 344 btfss win_invert ; Inverse video mode ?
345 sublw 0x80 345 sublw 0x80
346 346
347 ; Move the two bits to aa_color_half and aa_color_quarter: 347 ; Move the two bits to aa_color_half and aa_color_quarter:
348 swapf WREG ; --> 0000.0LL0 byte 348 swapf WREG ; --> 0000.0LL0 byte
349 iorlw b'001' ; We are in AA mode, don't forget it ! 349 iorlw b'001' ; We are in AA mode, don't forget it !
385 385
386 bra aa_decode_3 ; Done. 386 bra aa_decode_3 ; Done.
387 387
388 ; ---- Simple BLACK and WHITE cases ------------------------------ 388 ; ---- Simple BLACK and WHITE cases ------------------------------
389 aa_decode_13: ; Got a 1xx or a 000 code... 389 aa_decode_13: ; Got a 1xx or a 000 code...
390 btfsc win_invert,0 ; Inverse video mode ? 390 btfsc win_invert ; Inverse video mode ?
391 xorlw 0x80 ; YES: invert levels. 391 xorlw 0x80 ; YES: invert levels.
392 bn aa_decode_2 ; Then test high bit. 392 bn aa_decode_2 ; Then test high bit.
393 393
394 ; WHITE pixel (ie. full color) 394 ; WHITE pixel (ie. full color)
395 bsf tft_rs,0 ; RS_H ; Data 395 bsf tft_rs,0 ; RS_H ; Data