-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAthlete.s
More file actions
121 lines (112 loc) · 1.84 KB
/
Athlete.s
File metadata and controls
121 lines (112 loc) · 1.84 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
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
.name "Athlete1"
.comment "Keep running boy but not too fast"
start:
sti r1, %:aliveloop, %1 ; %1 to 1 for syntax test
live %1
fork %:continue
and r1, %0, r1
boom2:
ld %0, r5 ; r5 to %5 for syntax test
sti r1, %:aliveloop, %1
live %1
sti r5, -500, %:start
sti r5, -490, %:start
sti r5, -480, %:start
sti r5, -470, %:start
sti r5, -460, %:start
sti r5, -450, %:start
sti r5, -440, %:start
sti r5, -430, %:start
sti r5, -420, %:start
sti r5, -410, %:start
sti r5, -400, %:start
zjmp %:boom2
aliveloop:
live %1
zjmp %:aliveloop
continue:
sti r1, %:aliveloop2, %1
live %1
fork %:continue2
and r1, %0, r1
aliveloop2:
live %1
zjmp %:aliveloop2
continue2:
sti r1, %:aliveloop3, %1
live %1
fork %:continue3
and r1, %0, r1
aliveloop3:
live %1
zjmp %:aliveloop3
continue3:
sti r1, %:aliveloop4, %1
live %1
fork %:attack
and r1, %0, r1
aliveloop4:
live %1
zjmp %:aliveloop4
attack:
and r1, %0, r1
zjmp %:boom
and r1, %0, r1
and r1, %0, r1
and r1, %0, r1
and r1, %0, r1
and r1, %0, r1
and r1, %0, r1
and r1, %0, r1
and r1, %0, r1
and r1, %0, r1
and r1, %0, r1
and r1, %0, r1
and r1, %0, r1
and r1, %0, r1
sti r1, %next, %1
next:
live %1
and r1, %0, r1
and r1, %0, r1
and r1, %0, r1
and r1, %0, r1
and r1, %0, r1
and r1, %0, r1
and r1, %0, r1
and r1, %0, r1
and r1, %0, r1
and r1, %0, r1
and r1, %0, r1
and r1, %0, r1
and r1, %0, r1
and r1, %0, r1
and r1, %0, r1
and r1, %0, r1
sti r1, %next2, %1
next2:
live %1
and r1, %0, r1
and r1, %0, r1
and r1, %0, r1
and r1, %0, r1
boom:
sti r1, %next2, %1
next2:
live %1
ld %0, r5
sti r5, 500, %:end
sti r5, 490, %:end
sti r5, 480, %:end
sti r5, 470, %:end
sti r5, 460, %:end
sti r5, 450, %:end
sti r5, 440, %:end
sti r5, 430, %:end
sti r5, 420, %:end
sti r5, 410, %:end
sti r5, 400, %:end
fork %:start
zjmp %:boom
end:
aff r1