ili9341: save X

This commit is contained in:
Martin Preuss
2025-06-02 01:03:23 +02:00
parent 4f610c68a2
commit d4ad6844e3

View File

@@ -29,11 +29,15 @@
; @clobbers r16 (r17, r20, r21, r22, r23, r24, r25, X)
ili9341_WriteCharacterX1At:
rcall ili9341FontRenderChar ; (r16, r17, r24, r25, z)
rcall ili9341BitBlit ; (r16, r17, r20, r21, r22, r23, r24, r25, X)
; advance X (add char width to X)
add r4, r8
adc r5, r9
push xl
push xh
rcall ili9341FontRenderChar ; (r16, r17, r24, r25, z)
rcall ili9341BitBlit ; (r16, r17, r20, r21, r22, r23, r24, r25, X)
; advance X (add char width to X)
add r4, r8
adc r5, r9
pop xh
pop xl
ret
; @end
@@ -111,7 +115,7 @@ ili9341FontRenderChar:
push xl
push xh
; 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 xl