🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rec.games.corewar
Article #258

ICSW Standards Operands Question

#258
From: John Morrow
Date: Sat, 12 Dec 1992 20:01
29 lines
1268 bytes
I found the following sort of code in some of the examples I was
looking at (the following is a fragment from "vampire.cw") and was
wondering if the operand "#(spin-bite)" on the line labeled "start"
was allowed under ICSW-88 standards.  If so, then what are the
rules governing mathamatical operations within operands, ESPECIALLY
where it concerns immediate addressing.  This strikes me as being
a bit "high level" compared to the way the rest of things are done.

>nprc 	dat 500
>spin	spl 0
>	djz 2 nprc
>fang	jmp @1
>bite	dat 1000 
>start	mov #(spin-bite) @bite
            ^^^^^^^^^^^^
>	sub bite @bite
>	sub #1 bite
>       mov fang @bite
>	add #10 bite
>	cmp #500 nprc 	
>	jmp start	

Thanks,

John Morrow
morrow@remus.rutgers.edu

PS - Sorry if this has been covered before at length...
Technical Details
Message-ID: <Dec.12.15.00.59.1992.1713@foghat.rutgers.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!think.com!ames!sun-barr!rutgers!igor.rutgers.edu!foghat.rutgers.edu!morrow

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!think.com!ames!sun-barr!rutgers!igor.rutgers.edu!foghat.rutgers.edu!morrow
From: morrow@foghat.rutgers.edu (John Morrow)
Newsgroups: rec.games.corewar
Subject: ICSW Standards Operands Question
Keywords: Mathamatical Operations
Message-ID: <Dec.12.15.00.59.1992.1713@foghat.rutgers.edu>
Date: 12 Dec 92 20:01:00 GMT
Organization: Rutgers Univ., New Brunswick, N.J.
Lines: 29