Welcome to GameHourz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

CoreWin needs some sort of absolute constants.

 
   Game Forums (Home) -> Core War RSS
Related Topics:
Score Surface for 94nop - Hi, some anonymous person (still called for ;-) is so kind to provide access to a pile of I have suggested to calculate one score surface for standard settings. It takes roughly 1000 times the time of one surface to..

Bug in pMARS - Hi, either I don't know how EQUs work or I have found a bug in the parser of pMARS. So far I cound pin it down to: ;name test ;assert CORESIZE == 800 v3 EQU 3 * (3 / 2 + 1) + 3 v4 EQU (CORESIZE - v3) dat.f v3, v4 With the..

KOTH.ORG: Status - ICWS Experimental 94 03/06/06 - Weekly Status on 03/06/06 -=- is up! Meetings held in #corewars -=- Tons of new features on pages -=- *FAQ* page located at: Current Status of the KOTH.ORG ICWS 94..

KOTH.ORG: Status - MultiWarrior 94 03/06/06 - Weekly Status on 03/06/06 -=- is up! Meetings held in #corewars -=- Tons of new features on pages -=- *FAQ* page located at: Current Status of the KOTH.ORG 94 CoreWar..

KOTH.ORG: Status - 94 No Pspace 03/06/06 - Weekly Status on 03/06/06 -=- is up! Meetings held in #corewars -=- Tons of new features on pages -=- *FAQ* page located at: Current Status of the KOTH.ORG 94 No Pspace CoreWar Hill:..
Next:  a few nano warriors  
Author Message
Skybuck Flying

External


Since: May 25, 2006
Posts: 295



(Msg. 1) Posted: Fri Dec 21, 2007 12:07 am
Post subject: CoreWin needs some sort of absolute constants.
Archived from groups: rec>games>corewar (more info?)

Hello,

Given the following program:

nop 1
nop 2
nop 3
nop 4
nop 5
Here nop Here

The last operation should be generated as:

nop 6

Instead CoreWin will generated it as

nop 0

This is very inconvienent for writing warriors which copy themselfes.

This makes it very difficult if not impossible to simply add offsets.

Because the offsets will always be wrong/zero.

Some sort of absolute constant is needed for example:

nop 1
nop 2
nop 3
nop 4
nop 5
Here nop @Here

Would generate the correct program.

Bye,
Skybuck.

 >> Stay informed about: CoreWin needs some sort of absolute constants. 
Back to top
Login to vote
Skybuck Flying

External


Since: May 25, 2006
Posts: 295



(Msg. 2) Posted: Fri Dec 21, 2007 12:07 am
Post subject: Re: CoreWin needs some sort of absolute constants. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Since @ is already related to addressing modes.

Maybe the following sign could be used: &

so:

nop 1
nop 2
Here nop &Here

would generate:

nop 1
nop 2
nop 3

Bye,
Skybuck.

 >> Stay informed about: CoreWin needs some sort of absolute constants. 
Back to top
Login to vote
Skybuck

External


Since: Dec 20, 2007
Posts: 1



(Msg. 3) Posted: Fri Dec 21, 2007 12:07 am
Post subject: Re: CoreWin needs some sort of absolute constants. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

For now maybe defining a common origin might help:

Origin nop $0, $0
nop 1
nop 2
nop 3
nop 4
nop 5
nop -Origin

Will compile to:

nop 0
nop 1
nop 2
nop 3
nop 4
nop 5
nop 6

Bye,
Skybuck.

(Posted via google, @home newsserver malfunctioning)
 >> Stay informed about: CoreWin needs some sort of absolute constants. 
Back to top
Login to vote
Skybuck Flying

External


Since: May 25, 2006
Posts: 295



(Msg. 4) Posted: Fri Dec 21, 2007 12:07 am
Post subject: Re: CoreWin needs some sort of absolute constants. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

For now maybe defining a common origin might help:

Origin nop $0, $0
nop 1
nop 2
nop 3
nop 4
nop 5
nop -Origin

Will compile to:

nop 0
nop 1
nop 2
nop 3
nop 4
nop 5
nop 6

Bye,
Skybuck.
 >> Stay informed about: CoreWin needs some sort of absolute constants. 
Back to top
Login to vote
Display posts from previous:   
   Game Forums (Home) -> Core War All times are: Ekaterinburg, Islamabad, Karachi, Tashkent (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]