-
Notifications
You must be signed in to change notification settings - Fork 84
/
rel4
85 lines (85 loc) · 871 Bytes
/
rel4
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
.PAGE 'REL4'
;*
;*
;**********************************
;*
;*
;* SETLST
;*
;*
;**********************************
;*
;*
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
;*
;*
;*********************************
;*
;*
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
;
.END