Skip to content

Commit 4da04c7

Browse files
committed
Simplify strindex.
1 parent a2dab35 commit 4da04c7

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

src/interp/strindex.asm

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
; String indexing
2828
; ---------------
2929

30-
.importzp tmp1, tmp3, sptr, next_ins_incsp
31-
.import stack_l, stack_h
30+
.importzp tmp1, tmp3
31+
.import stack_l, stack_h, next_ins_incsp_2
3232

3333
.include "atari.inc"
3434

@@ -43,9 +43,6 @@
4343
; SP = Position
4444
; SP+1 = String address
4545

46-
; Fix stack pointer
47-
inc sptr
48-
4946
cpx #0
5047
bmi zero
5148
beq ok1
@@ -85,7 +82,7 @@ xit:
8582
; Return new string position
8683
lda #<(LBUFF-1)
8784
ldx #>(LBUFF-1)
88-
jmp next_ins_incsp
85+
jmp next_ins_incsp_2
8986

9087
zero:
9188
ldx #0

0 commit comments

Comments
 (0)