Shop OBEX P1 Docs P2 Docs Learn Events
Troubleshooting Debug's WATCH — Parallax Forums

Troubleshooting Debug's WATCH

John KauffmanJohn Kauffman Posts: 653
edited 2006-10-14 11:15 in General Discussion
Sorry about post without subject line. Will and admin pelase save me the embaressment by deleting the subject-less post? Thanks.


Still some questions with WATCH.·Following is the whole program. I’ve stripped out everything unneeded. I thought this replicated the WATCH examples in the sample programs, but something is off.
·
·
DEVICE········· SX28, OSC4MHZ, TURBO, STACKX, OPTIONX
FREQ··········· 4_000_000
·
MyNum···· ··· VAR· Byte
MyChar ······ VAR· Byte
MyString······VAR· Byte(5)
·
WATCH MyNum,1,UDEC
WATCH MyChar,1,FSTR
WATCH MyString,5,FSTR
·
PROGRAM Main nostartup
Main:
MyNum = 5
MyChar = "H"
PUT MyString, "Hello"
BREAK
· GOTO Main
·
·
I strike Ctrl+D, it assembles and loads.
Result in Watch Window:
MyNum·········· ‘□’
MyChar·········· 1
Mystring·········· ‘ll○□□’
·
Any guesses?

Comments

  • BeanBean Posts: 8,129
    edited 2006-10-13 17:07
    John,
    Are you hitting RUN from the debug window first ? Otherwise you will see whatever happens to be in those memory locations.

    The second parameter for UDEC is BITS so you would need "WATCH MyNum,8,UDEC", however SX/B will put in the parameters. So you can just use "WATCH MyNum" and "WATCH MyString".

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cheap used 4-digit LED display with driver IC·www.hc4led.com

    Low power SD Data Logger www.sddatalogger.com
    SX-Video Display Modules www.sxvm.com

    Don't mistake experience for intelligence. And vis-vera.


    Post Edited (Bean (Hitt Consulting)) : 10/13/2006 5:13:28 PM GMT
  • John KauffmanJohn Kauffman Posts: 653
    edited 2006-10-14 11:15
    Um... Who left that resonator in my board?
Sign In or Register to comment.