ili9341: save X
This commit is contained in:
@@ -29,11 +29,15 @@
|
|||||||
; @clobbers r16 (r17, r20, r21, r22, r23, r24, r25, X)
|
; @clobbers r16 (r17, r20, r21, r22, r23, r24, r25, X)
|
||||||
|
|
||||||
ili9341_WriteCharacterX1At:
|
ili9341_WriteCharacterX1At:
|
||||||
rcall ili9341FontRenderChar ; (r16, r17, r24, r25, z)
|
push xl
|
||||||
rcall ili9341BitBlit ; (r16, r17, r20, r21, r22, r23, r24, r25, X)
|
push xh
|
||||||
; advance X (add char width to X)
|
rcall ili9341FontRenderChar ; (r16, r17, r24, r25, z)
|
||||||
add r4, r8
|
rcall ili9341BitBlit ; (r16, r17, r20, r21, r22, r23, r24, r25, X)
|
||||||
adc r5, r9
|
; advance X (add char width to X)
|
||||||
|
add r4, r8
|
||||||
|
adc r5, r9
|
||||||
|
pop xh
|
||||||
|
pop xl
|
||||||
ret
|
ret
|
||||||
; @end
|
; @end
|
||||||
|
|
||||||
@@ -111,7 +115,7 @@ ili9341FontRenderChar:
|
|||||||
push xl
|
push xl
|
||||||
push xh
|
push xh
|
||||||
; call render function of the selected font (first word of font is jmp to render function)
|
; call render function of the selected font (first word of font is jmp to render function)
|
||||||
rcall ili9341JumpToFontRenderFn ; (r17, r24, r25, x, z)
|
rcall ili9341JumpToFontRenderFn ; (r17, r24, r25, x)
|
||||||
pop xh
|
pop xh
|
||||||
pop xl
|
pop xl
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user