blob: c5022a21616b027aadc2a4d72c178728b01d6b1f (
plain) (
blame)
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
|
;author Benji Dial
;name Dwarf Replicator
;not a particularly good warrior, but is sufficient to test a few things
start
mov 0, 2908
nop }start, >start
jmp 2
dat
seq.a #the_end - start, start
jmp start
jmp 2
dat
sub.ab #the_end - start, start
spl @start
jmp 2, <start
dat
dwarf
mov the_end, the_end + 4
add.ab #4, dwarf
jmp 2
dat
seq.ab #start + 723 - dwarf, dwarf
jmp dwarf
jmp 2
dat
core_clear
mov the_end, the_end + 1
add.ab #1, -1
jmp 2
dat
seq.a #0-1, core_clear
jmp core_clear
jmp 2
dat
mov.ab #the_end + 1, core_clear
jmp core_clear
dat
the_end
|