fix(serial): properly exporting PINCHAR and added POUTZSTR macro

This commit is contained in:
2025-09-27 10:39:24 -05:00
parent 53add429a9
commit 18a5615b53
2 changed files with 10 additions and 0 deletions

View File

@@ -7,3 +7,12 @@
INITUART IMPORT
POUTCHAR IMPORT
POUTZSTR IMPORT
PINCHAR IMPORT
; POUTZSTR wrapper macro
PZSTR MACRO
pshs x
ldx #\1
jsr POUTZSTR
puls x
ENDM

View File

@@ -15,6 +15,7 @@
EXPORT INITUART
EXPORT POUTCHAR
EXPORT POUTZSTR
EXPORT PINCHAR
; Initializes the UART with LCR settings and a BAUD rate from DIVISORS.
; ACCA: Index of the divsor to use in DIVISORS