-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathborders.s
59 lines (52 loc) · 1.1 KB
/
borders.s
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
;Opening the top + bottom borders
;inside an IRQ interrupt player
; !to "borders.prg"
;
; * = $0810 ;SYS 2064 to run it
.fopt compiler,"cc65 v 2.13.9"
.setcpu "6502"
.smart on
.export __STARTUP__ : absolute = 1 ; Mark as startup
.segment "CODE"
.proc _run: near
.segment "CODE"
.segment "STARTUP"
sei
lda #$02
sta $d020
lda #$00
sta $d021
lda #<irq1
sta $314
lda #>irq1
sta $315
lda #$7f
sta $dc0d
lda #$1b
sta $d011
lda #$01
sta $d01a
cli
jmp *
irq1: inc $d019
lda #$00
sta $d012
lda #$00
sta $d011
lda #<irq2
sta $314
lda #>irq2
sta $315
jmp $ea7e
irq2: inc $d019
lda #$fa
sta $d012
lda #$1b ;If you want to display a bitmap pic, use #$3b instead
sta $d011
lda #<irq1
sta $314
lda #>irq1
sta $315
jmp $ea7e
.endproc
.segment "ZPSAVE"