-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy pathrel3.src
58 lines (54 loc) · 1.17 KB
/
rel3.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
.page
.subttl 'rel3.src'
;********************************
;*
;*
;* rdrel
;*
;*
;********************************
;*
;*
rdrel
lda #lrf
jsr tstflg
bne rd05 ; no record error
;
rd10
jsr getpre
lda buftab,x
cmp lstchr,y
beq rd40
inc buftab,x
bne rd20
jsr nrbuf
rd15
jsr getpre
rd20
lda (buftab,x)
rd25
sta chndat,y
lda #rndrdy
sta chnrdy,y
lda buftab,x
cmp lstchr,y
beq rd30
rts
rd30
lda #rndeoi
sta chnrdy,y
rts
rd40
jsr nxtrec
jsr getpre
lda data
jmp rd25
rd05
ldx lindx ; no record char set up
lda #cr
sta chndat,x
lda #rndeoi
sta chnrdy,x
;no record error
lda #norec
jsr cmderr