File: impspiral.red

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 (17 lines) | stat: -rw-r--r-- 391 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
;name Imp Spiral
;author Walter Hofmann <walterh@gmx.de>
; taken from the FAQ

; grid 79x79 (igcdex)
; 5461 for 8 imps
; 4681 for 4 imps

IMPSIZE	EQU 5461
example	spl 1			; extend by adding more spl 1's
	spl 1
	spl 1
	spl 2
	jmp @0, imp
	add #IMPSIZE, -1	; bump address by impsize after each jmp
	dat #0, #0		; excess processes must die!
imp	mov 0, IMPSIZE		; in '94 use -> mov.i #0,IMPSIZE