-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy pathlccfmt4a.src
More file actions
41 lines (28 loc) · 780 Bytes
/
lccfmt4a.src
File metadata and controls
41 lines (28 loc) · 780 Bytes
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
.page
.subttl 'lccfmt4a.src'
jfmterr dec cnt ; test for retry
beq jfmte10
jmp jend
jfmte10 ldy #$ff
sty ftnum ; clear format
iny
sty gcrflg
jmp jerrr
; this subroutine will be called with x*255 for amount of chars written
jclear lda pcr2 ; enable write
and #$ff-$e0 ; wr mode=0
ora #$c0
sta pcr2
lda #$ff ; make port an output
sta ddra2 ; clear pending
lda #$55 ; write a 1f pattern
ldy #00
1$ bit pota1
bmi 1$
bit byt_clr
sta data2
dey
bne 1$
dex ; dex amount * 255
bne 1$
rts