Bots and Simulations > DNA - General
Question about Darwinbots Code.
(1/1)
BDragon:
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)?
Numsgil:
.aimdx is just a number. The star (*) means to read the value in the memory location pointed to by that number.
BDragon:
--- Quote from: Numsgil ---.aimdx is just a number. The star (*) means to read the value in the memory location pointed to by that number.
--- End quote ---
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.
Panda:
"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
Numsgil:
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.
Navigation
[0] Message Index
Go to full version