-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinitialize_macros.asm
More file actions
87 lines (74 loc) · 1 KB
/
initialize_macros.asm
File metadata and controls
87 lines (74 loc) · 1 KB
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
clear_board .macro
LDA #$01
STA needClearBoard
.endm
update_ball .macro
LDA #$01
STA needUpdateBall
.endm
update_ship .macro
LDA #$01
STA needUpdateShip
.endm
update_car .macro
LDA #$01
STA needUpdateCar
.endm
update_screen .macro
LDA #$01
STA needBoardRendering
.endm
mute_buttons .macro
LDA #$01
STA muteButtons
.endm
unmute_buttons .macro
LDA #$00
STA muteButtons
.endm
reset_timer .macro
LDA #$00
STA timer
STA timer+1
.endm
write_left_only .macro
LDX ram_board_ptr
LDA #$01
STA $200,x
.endm
write_mid_only .macro
LDX ram_board_ptr
INX
LDA #$01
STA $200,x
.endm
write_right_only .macro
LDX ram_board_ptr
INX
INX
LDA #$01
STA $200,x
.endm
write_left_mid .macro
LDX ram_board_ptr
LDA #$01
STA $200,x
INX
STA $200,x
.endm
write_mid_right .macro
LDX ram_board_ptr
INX
LDA #$01
STA $200,x
INX
STA $200,x
.endm
write_left_right .macro
LDX ram_board_ptr
LDA #$01
STA $200,x
INX
INX
STA $200,x
.endm