-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtitlescreen.asm
61 lines (40 loc) · 1.22 KB
/
titlescreen.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
60
61
titlescreen:
jsr init_screen_time
jsr init_title_stars
titlescreen_loop:
jsr update_drawing
jsr draw_title
jsr draw_title_stars
jsr update_screen_time
jsr read_button1_flank
cmpa #0
bne titlescreen_shutdown
jmp titlescreen_loop
titlescreen_shutdown
lda #2
sta CurrentScreen
rts
draw_title
lda #40
ldb #-75
jsr Moveto_d
ldu #storm_storm_string
jsr Print_Str_yx
lda #0
ldb #-90
jsr Moveto_d
ldu #press_start_string
jsr Print_Str_yx
lda #-20
ldb #-55
jsr Moveto_d
ldu #to_start_string
jsr Print_Str_yx
rts
storm_storm_string:
db 0, 0, "STORM STORM", $80
press_start_string:
db 0, 0, "PRESS BUTTON 1", $80
to_start_string:
db 0, 0, "TO START", $80
include 'stars.asm'