blob: f301a05cdd81e894518eefe96727d8680a2c73f5 (
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 #end - start, start
jmp start
jmp 2
dat
sub.ab #end - start, start
spl @start
jmp 2, <start
dat
dwarf:
mov end, end + 4
add.ab #4, dwarf
jmp 2
dat
seq.ab #start + 723 - dwarf, dwarf
jmp dwarf
jmp 2
dat
core_clear:
mov end, end + 1
add.ab #1, 0-1
jmp 2
dat
seq.a #0-1, core_clear
jmp core_clear
jmp 2
dat
mov.ab #end + 1, core_clear
jmp core_clear
dat
end:
|