Don't hardcode the stack location

git-svn-id: svn://svn.cc65.org/cc65/trunk@609 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2001-03-08 14:48:00 +00:00
parent a4b921ca7e
commit 22b55ae7fe
2 changed files with 7 additions and 3 deletions

View File

@@ -26,7 +26,10 @@ _read: jsr popax ; get count
L1: lda ptr2
ora ptr2+1 ; count zero?
beq L9
jsr BASIN
dec ptr2
bne L1a
dec ptr2+1
L1a: jsr BASIN
ldy #0
sta (ptr1),y ; save char
inc ptr1