summaryrefslogtreecommitdiff
path: root/warriors/train.red
blob: 556896beb1b2e269dd64b4d6dbb138b44334060e (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
;author Benji Dial
;name Train

step equ 4943

  spl 1
  spl 1
  spl 1

paper
  mov.f var + 1, var
  spl @var
  mov }var, >var

  mov.a #step / 2, the_end + 2

stone
  mov the_end + 1, }the_end + 2
  jmp stone, }the_end + 2

var
  dat
  dat paper + 1, paper + step + 1

the_end