1
0
mirror of https://github.com/cc65/cc65.git synced 2026-04-20 17:20:49 +00:00

Merge pull request #2381 from colinleroy/asm-fgets

Rewrite fgets in asm
This commit is contained in:
Bob Andrews
2024-01-26 19:36:57 +01:00
committed by GitHub
4 changed files with 135 additions and 72 deletions
+14
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