Shop OBEX P1 Docs P2 Docs Learn Events
This may be a bug in SX-Sim. — Parallax Forums

This may be a bug in SX-Sim.

MacGeek117MacGeek117 Posts: 747
edited 2005-12-05 01:52 in General Discussion
Whenever I try to put a PAUSE command in a program, SX-Sim stops·at it. I have attached a sample program for you to test.
RoboGeek

P.S. There are no errors in the program that I know of.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There are·3 kinds of people in the world,

the dreamers, the do-ers, and the "Oh, what's this button do"-ers.
Formerly bugg.
www.parallax.com
www.goldmine-elec.com
www.expresspcb.com
www.startrek.com

Comments

  • Guenther DaubachGuenther Daubach Posts: 1,321
    edited 2005-12-04 14:14
    RobGeek,

    I assume that you use "Run" to execute the program with SXSim. Does SXSim really stop at the code SX-B has generated for the PAUSE command? You should notice that the register display, and the fields showing the cycle count and the execution time are updated every second - at least, this happens when I test your code here.

    Even when you run SXSim on a pretty fast Windows machine, it simulates the SX by no means in real-time but much much slower. Where he "real" SX will execute the instructions for PAUSE 1000 in one second, SXSim in minutes only. Maybe, this makes you believe, SXSim has stopped. Sorry for that inconvenience - seems as if I'll have to write another, much faster "SX engine" for SXSim one day.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Greetings from Germany,

    G
  • MacGeek117MacGeek117 Posts: 747
    edited 2005-12-05 01:52
    That makes sense! Thank you again! Yes, the cycle counts are updated.
    RoboGeek

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    There are·3 kinds of people in the world,

    the dreamers, the do-ers, and the "Oh, what's this button do"-ers.
    Formerly bugg.
    www.parallax.com
    www.goldmine-elec.com
    www.expresspcb.com
    www.startrek.com
    ·
Sign In or Register to comment.