-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmortel.s
60 lines (47 loc) · 826 Bytes
/
mortel.s
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
.name "Booster !"
.comment "Alors la, si ca marche, trop content ! :)"
boost: ld %12,r2
ld %3,r3
ld %4,r4
ld %5,r7
sti r1,%:live1,%1
live1: live %66
sti r1,%:fork0,%1
sti r1,%:fork1,%1
sti r1,%:fork2,%1
sti r1,%:wait,%1
sti r1,%:master,%1
sti r1,%:numero1,%1
sti r1,%:numero2,%1
sti r1,%:live,%-4
ldi %:live,%-2,r6
fork0: live %66
fork %:numero1
fork1: live %66
fork %:numero2
fork2: live %66
# fork %:fork0
master: live %66
ld %0,r3
ld %16777216,r6
# ldi %:master,%0,r6
ld %0,r5
zjmp %:ready
numero1: live %66
ld %3,r3
ld %68436,r2
# ldi %:live,%-2,r6
ld %0,r5
zjmp %:ready
numero2: live %66
ld %6,r3
ld %1409680135,r6
# ldi %:tampon,%1,r6
ld %0,r5
zjmp %:ready
tampon: sti r6,r3,r5
live: sti r1,r5,r5
ready: sti r6,r3,%:ecriture
wait: live %66
zjmp %:ecriture
ecriture: zjmp %:wait