-
Notifications
You must be signed in to change notification settings - Fork 3
/
showHiddenImg.asm
59 lines (43 loc) · 1000 Bytes
/
showHiddenImg.asm
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
!cpu 6502
!to "build/show_hidden_img.prg",cbm
; Allow us to run the program just launching 'RUN'
* = $0801
!byte $0d,$08,$dc,$07,$9e,$20,$34,$39
!byte $31,$35,$32,$00,$00,$00
* = $c000
jsr init_screen
jsr sid_init
jsr load_image
; Disable interrupt
sei
ldy #$7f
sty $dc0d
sty $dd0d
lda $dc0d
lda $dd0d
lda #$01
sta $d01a
lda $d011
and #$7f
sta $d011
lda #<irq
ldx #>irq
sta $314
stx $315
lda #$00
sta $d012
cli
jmp *
; custom interrupt routine
irq dec $d019
jsr sid_play
inc $d020
jsr show_img
jmp $ea81
; load source
!source "src/constants.asm"
!source "src/rut_clear_screen.asm"
!source "src/rut_load_image.asm"
!source "src/rut_show_image.asm"
!source "src/data_img_rclogo.asm"
!source "src/load_res.asm"