-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy pathrel4.src
59 lines (48 loc) · 1.23 KB
/
rel4.src
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
.messg "rel4"
.subttl "rel4"
.page
setlst ldx lindx
lda nr,x
sta r1
dec r1
cmp #2
bne setl01
lda #$ff
sta r1
setl01 lda rs,x
sta r2
jsr getpnt
ldx lindx
cmp r1
bcc setl10
beq setl10
jsr dblbuf
jsr fndlst
bcc setl05
ldx lindx
sta lstchr,x
jmp dblbuf
setl05 jsr dblbuf
lda #$ff
sta r1
setl10 jsr fndlst
bcs setl40
jsr getpnt
setl40 ldx lindx
sta lstchr,x
rts
fndlst jsr set00
ldy r1 ; offset to start at
fndl10 lda (dirbuf),y
bne fndl20
dey
cpy #2
bcc fndl30
dec r2 ; limit counter
bne fndl10
fndl30 dec r2
clc ; not found here
rts
fndl20 tya ; found the end char
sec
rts