-
Notifications
You must be signed in to change notification settings - Fork 84
/
ssend.src
47 lines (47 loc) · 1.17 KB
/
ssend.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
.page 'ssend'
;*********************************
;* ssend: position ss & buftab *
;* to end of last record. *
;* vars: *
;*********************************
;
ssend
jsr ssset
sta ssnum
lda #4
sta dirbuf
ldy #ssioff-6
bne se20
se10
dey
dey
bmi break
se20
lda (dirbuf),y ; look for last ss #
beq se10 ; t=0: not yet
tya
lsr a
cmp ssnum ; check ss #
beq se30 ; this is last ss
;
sta ssnum
ldx lindx
lda ss,x
jsr ibrd ; read last ss
se30
ldy #0 ; set ssind
sty dirbuf
lda (dirbuf),y ; debug
bne break
iny
lda (dirbuf),y
tay ; back up to track
dey
sty ssind
tya
jmp setssp
;
break
lda #$67
jsr cmder2
;.end