-
Notifications
You must be signed in to change notification settings - Fork 0
/
41427.2.txt
92 lines (78 loc) · 833 Bytes
/
41427.2.txt
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
@0
##SPEED3
@1
START:
MOV UP, ACC
MOV ACC, RIGHT
JNZ NOT0
MOV 0, DOWN
MOV 100, DOWN
MOV 100, DOWN
JMP START
NOT0:
MOV ACC, DOWN
MOV ACC, DOWN
MOV ACC, DOWN
@2
MOV LEFT, ACC
MOV ACC, DOWN
MOV ACC, DOWN
MOV ACC, DOWN
@3
@4
# >3XVAL
#S:MOV DOWN, ACC
# MOV UP, DOWN
# SUB UP
# JLZ C
#N:MOV UP, DOWN
# JMP S
#C:ADD UP
# MOV ACC, DOWN
#>VAL, MAX
#<MAX
@5
I:MOV 999, ACC
S:SAV
MOV UP, ACC
JEZ Z
SWP
SUB UP
JLZ C
MOV 0, ACC
C:ADD UP
JMP S
Z:SWP
MOV ACC, DOWN
MOV UP, NIL
MOV UP, NIL
JMP I
@6
# >3XVAL
S:MOV DOWN, ACC
MOV UP, DOWN
SUB UP
JGZ C
N:MOV UP, DOWN
JMP S
C:ADD UP
MOV ACC, DOWN
#>VAL, MAX
#<MAX
@7
@8
#S:MOV UP, ACC
# JNZ C
MOV UP, DOWN
# JMP S
#C:MOV UP, NIL
@9
MOV 0, UP
S:MOV UP, ACC
JNZ C
MOV UP, DOWN
MOV 0, UP
JMP S
C:MOV UP, UP
JMP S
@10