-
Notifications
You must be signed in to change notification settings - Fork 0
/
logoscreen.asm
90 lines (59 loc) · 1.85 KB
/
logoscreen.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
logoscreen:
jsr init_screen_time
logoscreen_loop:
jsr update_drawing
jsr draw_logo
jsr update_screen_time
lda ScreenSeconds
cmpa #3
beq logoscreen_shutdown
jsr read_button1_flank
cmpa #0
bne logoscreen_shutdown
jmp logoscreen_loop
logoscreen_shutdown
lda #1
sta CurrentScreen
rts
draw_logo
lda #0
ldb #-10
jsr Moveto_d
ldx #logo_left_list
jsr Draw_VLc
lda #0
ldb #10
jsr Moveto_d
lda #0
ldb #10
jsr Moveto_d
ldx #logo_right_list
jsr Draw_VLc
lda #0
ldb #-10
jsr Moveto_d
lda #-20
ldb #-40
jsr Moveto_d
ldu #dogma_string
jsr Print_Str_yx
lda #-40
ldb #-58
jsr Moveto_d
ldu #presents_string
jsr Print_Str_yx
rts
logo_left_list:
db 2 ; number of vectors - 1
db 60, -60
db 60, 60
db -120, 0
logo_right_list:
db 2 ; number of vectors - 1
db 60, 60
db 60, -60
db -120, 0
dogma_string:
db 0, 0, "DOGMA", $80
presents_string:
db 0, 0, "PRESENTS", $80