🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rec.games.corewar
Article #213

Re: SLT

#213
From: Wee-Keong LIM
Date: Wed, 11 Nov 1992 23:47
51 lines
2918 bytes

In article <1992Nov8.195147.29858@cs.kuleuven.ac.be> ( number 1456 to me ) Henk
Van Wulpen writes:


>   after having read a lot of stuff about Core War (all doc from soda, and
> I've started reading all digests !!!), I have the following question. How
> does SLT exactly work ???? I mean, how can one number be less than an other
> one !!??? Since Core is circular, all addresses are to be interpreted as
> modulo CORESIZE. But as far as I know comparison isn't defined in modulo-
> calculus. Is it just that all addresses should be converted to the range
> of 0..CORESIZE-1, and then compare these representations ?


	As I understand the SLT command, the numbers in the fields should be
treated as the appropriate kind of address.  The values that are compared are the
B-field values at the specified addresses.

	For example, SLT 1, 2 would check whether the B-field value in location 1
is less than the B-field value in location 2 ( relative to the current location,
of course ).  The indirect, and predecrement indirect have the usual meanings. 
The only other restriction is that immediate values ( e.g. #5 ) can only be in
the A-field.  I'm not sure why, since it still makes sense to comare the value at
some location in A-field with the immediate value given in the B-field.

	In any case, using immediate mode is the only case where the actual
numbers in the fields are used in the comparison.  I'm not sure how this
confusion arose, since this is how I interpreted the docs ( I usually just
refer to the '88 standard ).  Oh well, I had trouble too - I read the docs about
5 times before I understood it :-).

	I'm glad to have some discussion about the specs.  Is there any movement
towards a new specification ( or a refinement of the old ones ) ?  I'd be
interested to know.


		Thanks, in advance.

					Keong.

+-----------------------------------------------------------------------------+
|e-mail: keong@ecr.mu.oz.au    University of Melbourne, Melbourne, Australia. |
|                                                                             |
| "The difficult we can do right away, the impossible takes a little longer." |
|    Hence,        "Nothing is Impossible"                                    |
+-----------------------------------------------------------------------------+


+-----------------------------------------------------------------------------+
|e-mail: keong@ecr.mu.oz.au    University of Melbourne, Melbourne, Australia. |
Technical Details
Message-ID: <9231710.16573@mulga.cs.mu.OZ.AU>
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!cs.mu.OZ.AU!keong
References: <1992Nov8.195147.29858@cs.kuleuven.ac.be>

Show Full Headers
Complete Article Headers
Newsgroups: rec.games.corewar
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!cs.mu.OZ.AU!keong
From: keong@ecr.mu.OZ.AU (Wee-Keong LIM)
Subject: Re: SLT
Message-ID: <9231710.16573@mulga.cs.mu.OZ.AU>
Sender: news@cs.mu.OZ.AU
Organization: Dept. Of Engineering Computer Resources, Uni. Of Melbourne
References:  <1992Nov8.195147.29858@cs.kuleuven.ac.be>
Date: Wed, 11 Nov 1992 23:47:45 GMT
Lines: 51