-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathASM.event
133 lines (92 loc) · 2.99 KB
/
ASM.event
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
//- Main -
ALIGN 4
boot:
#inctext lyn "ASM\boot.elf" //change to thumb mode and set up some stuff
ALIGN 4
interrupt:
#inctext lyn "ASM/interrupt.elf" //handle interrupts and key pressed
ALIGN 4
loadData:
#inctext lyn "ASM/loadData.elf" //load ammount of words from source to destination
ALIGN 4
fillDest:
#inctext lyn "ASM/fillDest.elf" //fill destination with value specified
//- Screen -
ALIGN 4
fadeIn:
#inctext lyn "ASM/Screen/fadeIn.elf" //make the screen black then fade in
ALIGN 4
fadeOut:
#inctext lyn "ASM/Screen/fadeOut.elf" //remove any current blending then fade into black
//- Puzzle -
ALIGN 4
puzzleMain:
#inctext lyn "ASM/Puzzle/puzzleMain.elf" //main gameplay loop
ALIGN 4
loadPuzzle:
#inctext lyn "ASM/Puzzle/loadPuzzle.elf" //given puzzle, read graphics and produce puzzle data
ALIGN 4
drawGrid:
#inctext lyn "ASM/Puzzle/drawGrid.elf" //given puzzle, draw grid for the corresponding size
ALIGN 4
getHints:
#inctext lyn "ASM/Puzzle/getHints.elf" //given puzzle, make a list of the hints and write them to ram
ALIGN 4
getPlayerHints:
#inctext lyn "ASM/Puzzle/getPlayerHints.elf" //given player data, make a list of the hints and write them to ram
ALIGN 4
compareHints:
#inctext lyn "ASM/Puzzle/compareHints.elf" //check puzzle hints against player hints
ALIGN 4
drawHints:
#inctext lyn "ASM/Puzzle/drawHints.elf" //given pointer to hints in ram, draw them to the grid
ALIGN 4
cursorMovement:
#inctext lyn "ASM/Puzzle/cursorMovement.elf" //check if the cursor has to be moved this frame
ALIGN 4
drawCursor:
#inctext lyn "ASM/Puzzle/drawCursor.elf" //draw sprites for the cursor
ALIGN 4
drawColors:
#inctext lyn "ASM/Puzzle/drawColors.elf" //draw the color selection
ALIGN 4
colorChange:
#inctext lyn "ASM/Puzzle/colorChange.elf" //check if colors should change this frame
ALIGN 4
stopAction:
#inctext lyn "ASM/Puzzle/stopAction.elf" //check if action should stop this frame
ALIGN 4
changeAction:
#inctext lyn "ASM/Puzzle/changeAction.elf" //check if action should change this frame
ALIGN 4
applyAction:
#inctext lyn "ASM/Puzzle/applyAction.elf" //check if action should be applied this frame
ALIGN 4
drawSquares:
#inctext lyn "ASM/Puzzle/drawSquares.elf" //update squares and crosses
ALIGN 4
drawPreview:
#inctext lyn "ASM/Puzzle/drawPreview.elf" //draw the preview
ALIGN 4
updatePreview:
#inctext lyn "ASM/Puzzle/updatePreview.elf" //update preview with the new pixel
ALIGN 4
drawTimer:
#inctext lyn "ASM/Puzzle/drawTimer.elf" //draw and update the timer
//- Buttons -
ALIGN 4
checkPressed:
#inctext lyn "ASM/Buttons/checkPressed.elf" //check if button was just pressed
ALIGN 4
checkReleased:
#inctext lyn "ASM/Buttons/checkReleased.elf" //check if button was just released
ALIGN 4
checkHeld:
#inctext lyn "ASM/Buttons/checkHeld.elf" //check if button has been held for long enough
ALIGN 4
checkHeldOrPressed:
#inctext lyn "ASM/Buttons/checkHeldOrPressed.elf" //check if either button was just pressed or it has been held for long enough
//- Test -
ALIGN 4
testPuzzle:
#inctext lyn "ASM/testPuzzle.elf"