Shop OBEX P1 Docs P2 Docs Learn Events
help out a newbie? — Parallax Forums

help out a newbie?

ExilictExilict Posts: 31
edited 2004-09-08 22:28 in BASIC Stamp
I have this code so far:

'{$STAMP BS1}
'{$PORT COM1}
DIRS=11001011···························· 'Input/Output
PINS=10000011···························· 'Low/High
SYMBOL Trigger=PIN0······················ 'INPUT
SYMBOL Emitter=PIN1······················ 'OUTPUT
SYMBOL Detector=PIN2····················· 'INPUT
SYMBOL Solenoid=PIN3····················· 'OUTPUT
SYMBOL Dwell=B4
SYMBOL Drop=B5

My question is...· What is the "B4" and "B5" are they pre-defined?· They are never declared.· That is the lasty mystery to solving the problem I am having.

Thanks in advance
·· Chris

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-09-08 20:43
    B4 and B5 are predefined memory locations in RAM. The Help file and manual have details (see Memory and Variables).

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
  • ExilictExilict Posts: 31
    edited 2004-09-08 20:45
    Incase you couldn't figgure it out, I never did stamp programming before, just trying to fix a small problem I am having.

    -X
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-09-08 21:05
    If you've done any programming, the BASIC Stamp won't be difficult. We provide a lot of documentation, most people find it very useful.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
  • ExilictExilict Posts: 31
    edited 2004-09-08 21:48
    Ya, i think I got it figgured out... But... From the code above, how do you know what is in that location?

    X
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-09-08 22:28
    You can find out with DEBUG.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
Sign In or Register to comment.