avr: added titled windows
This commit is contained in:
@@ -47,7 +47,7 @@ ili9341Font12x20MonoHandlerFn:
|
||||
ili9341Font12x20MonoRenderChar:
|
||||
push zl
|
||||
push zh
|
||||
rcall ili9341Font12x20GetCharPosInFont ; (r17, r24, r25, z)
|
||||
rcall ili9341Font12x20GetCharPosInFont ; (r24, r25, z)
|
||||
ldi r25, 20 ; 20 bytes height
|
||||
ili9341Font12x20MonoRenderChar_loop1:
|
||||
ldi r24, 12 ; 16 bits
|
||||
@@ -68,10 +68,10 @@ ili9341Font12x20MonoRenderChar_writeForeground:
|
||||
mov r18, r2
|
||||
mov r19, r3
|
||||
ili9341Font12x20MonoRenderChar_sendToDisplay:
|
||||
mov r16, r18
|
||||
rcall SPIHW_MasterTransfer ; (R16)
|
||||
mov r16, r19
|
||||
rcall SPIHW_MasterTransfer ; (R16)
|
||||
mov r16, r18
|
||||
rcall SPIHW_MasterTransfer ; (R16)
|
||||
ili9341Font12x20MonoRenderChar_loop2end:
|
||||
dec r24
|
||||
brne ili9341Font12x20MonoRenderChar_loop2
|
||||
@@ -92,7 +92,7 @@ ili9341Font12x20MonoRenderChar_loop2end:
|
||||
; @param R16 character to write
|
||||
; @param Z pointer to font
|
||||
; @return Z pointer to begin of char data
|
||||
; @clobbers r17, r24, r25, z
|
||||
; @clobbers r24, r25, z
|
||||
|
||||
ili9341Font12x20GetCharPosInFont:
|
||||
mov r24, r16
|
||||
|
||||
Reference in New Issue
Block a user