File: teleporter2.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 (24 lines) | stat: -rw-r--r-- 407 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
#
# Core Wars program
#
# Modified version of teleporter by Daniel Karlsson, March 2000
#

	title "Teleporter2"
	author "fzago <fzago@gresham-computing.com>"

START:	info	2, LOC
		move	10, CNT
		move	&START, SRC
		move	LOC, DST
COPY:	own	[DST]
		jump	START
		movei	SRC, DST
		loop	CNT, COPY
		fork	[LOC]	# Insert Star Trek teleporter sound here
		jump START

LOC:	data	0
SRC:	data	0
DST:	data	0
CNT:	data	0