Rewrite fgets in asm

-104 bytes, -1% cycles
This commit is contained in:
Colin Leroy-Mira
2024-01-11 19:31:04 +01:00
parent 57e65a6bf6
commit 1f820d0ae8
4 changed files with 135 additions and 72 deletions

14
libsrc/runtime/pushptr1.s Normal file
View File

@@ -0,0 +1,14 @@
;
; Colin Leroy-Mira, 2024
;
; CC65 runtime: Push ptr1 to stack.
; A/X destroyed (set to ptr1)
.export pushptr1
.import pushax
.importzp ptr1
pushptr1:
lda ptr1
ldx ptr1+1
jmp pushax