summaryrefslogtreecommitdiff
path: root/warriors/trap.red
blob: 681ea6e3284448771c16bc7eb180d72e18a7de8d (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
;author benji
;name trap

org start

trap:
spl 1
jmp trap

start:
mov.i bomb, bomb + 8
add.ab #8, start
sub.ab #8, bomb
sne.ab #bomb - 8 - start, start
jmp core_clear
jmp start

bomb:
jmp trap - 8

core_clear:
mov background, background + 1
add.ab #1, core_clear
jnz.b core_clear, core_clear
mov.ab #background + 1 - core_clear, core_clear
jmp core_clear

background: