Darwinbots Forum

Bots and Simulations => DNA - General => Topic started by: BDragon on January 01, 2010, 10:39:06 PM

Title: Question about Darwinbots Code.
Post by: BDragon on January 01, 2010, 10:39:06 PM
Hey, I'm new here. I know this is obviously a newbie question, but I was wondering, what difference does typing the * make(e.g.: .aimdx vs. *.aimdx)?
Title: Question about Darwinbots Code.
Post by: Numsgil on January 02, 2010, 12:26:02 AM
.aimdx is just a number.  The star (*) means to read the value in the memory location pointed to by that number.
Title: Question about Darwinbots Code.
Post by: BDragon on January 02, 2010, 04:24:44 PM
Quote from: Numsgil
.aimdx is just a number.  The star (*) means to read the value in the memory location pointed to by that number.

   I'm confused, so what would be the difference between:
40 .aimdx store
and
40 *.aimdx store?

BTW, sorry if I'm posting on the wrong board.
Title: Question about Darwinbots Code.
Post by: Panda on January 02, 2010, 06:23:29 PM
"40 .aimdx store" will place the value of 40 into the memory location .aimdx
"40 *.aimdx store" doesnt do anything if I can rember correctly
Title: Question about Darwinbots Code.
Post by: Numsgil on January 02, 2010, 07:32:01 PM
40 *.aimdx store would store 40 into the memory location pointed to by the value that is in .aimdx.  Usually that will be 0, so it wouldn't do anything.

But imagine this:

40 .aimdx store
40 *.aimdx store

It would store 40 in to .aimdx, and 40 into memory location 40.