File: cascade.cw

package info (click to toggle)
corewars 0.9.13-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, sarge
  • size: 1,388 kB
  • ctags: 1,119
  • sloc: ansic: 7,429; yacc: 1,376; sh: 784; makefile: 112; lex: 104; lisp: 68
file content (26 lines) | stat: -rw-r--r-- 302 bytes parent folder | download | duplicates (2)
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
#
# Core Wars program
#
# Walter Hofmann, May 1999
#

	title "Fork cascade"
        author "Walter Hofmann <walterh@gmx.de>"

	move I,L
	fork D
D:	fork E
E:      fork F
F:      fork G
G:      fork H
H:      fork I
I:	move K,I
M:	info 2,J
	move K,[J]
	move L,I
	jump [J]

J:	data 0
K:	jump K
L:	data 0