avr: fixed handler for font 6x8
This commit is contained in:
@@ -50,9 +50,9 @@ ili9341Font6x8WriteChar:
|
|||||||
push zl
|
push zl
|
||||||
push zh
|
push zh
|
||||||
rcall ili9341Font6x8GetCharPosInFont ; (r16, r17, r18, r24, r25)
|
rcall ili9341Font6x8GetCharPosInFont ; (r16, r17, r18, r24, r25)
|
||||||
mov r25, r19 ; height in pixels
|
ldi r25, 8 ; 16 pixels height
|
||||||
ili9341Font6x8WriteChar_loop1:
|
ili9341Font6x8WriteChar_loop1:
|
||||||
mov r24, r18 ; width in pixels
|
ldi r24, 6 ; width in pixels
|
||||||
lpm r17, Z+ ; font data
|
lpm r17, Z+ ; font data
|
||||||
ili9341Font6x8WriteChar_loop2:
|
ili9341Font6x8WriteChar_loop2:
|
||||||
lsr r17
|
lsr r17
|
||||||
|
|||||||
Reference in New Issue
Block a user