Author Topic: Question about Darwinbots Code.  (Read 3962 times)

Offline BDragon

  • Bot Neophyte
  • *
  • Posts: 2
    • View Profile
Question about Darwinbots Code.
« 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)?

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Question about Darwinbots Code.
« Reply #1 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.

Offline BDragon

  • Bot Neophyte
  • *
  • Posts: 2
    • View Profile
Question about Darwinbots Code.
« Reply #2 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.

Offline Panda

  • Global Moderator
  • Bot Destroyer
  • *****
  • Posts: 476
  • Computer Science Undergraduate (nerd)
    • View Profile
Question about Darwinbots Code.
« Reply #3 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

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Question about Darwinbots Code.
« Reply #4 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.