Shop OBEX P1 Docs P2 Docs Learn Events
PropWorks — Parallax Forums

PropWorks

NewzedNewzed Posts: 2,503
edited 2006-10-24 21:37 in Propeller 1
I have started a program named PropWorks.· I have attached a copy of the program to date, along with all the objects the program uses.

This program is sort of a Help program.· Right now we are concentrating on the various operators used in SPIN.· Since we have just started the program, it will only respond to the following operators - <<, >>, +=, -=,
--, :=, ==, ++, *=, /= and //.· Any other operators will return a "Not found".

The program is menu-driven so just follow the screen prompts.· Your comments on this program will be greatly appreciated, and will help us decide whether or not to complete ths program.

Sid

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Don't have VGA?

Newzed@aol.com

Comments

  • NewzedNewzed Posts: 2,503
    edited 2006-10-12 21:23
    Mike, with the Boolean operators such as AND, OR and NOT, why is TRUE set to -1 instead of the 1 you would expect?

    Sid

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sid Weaver
    Don't have VGA?

    Newzed@aol.com
    ·
  • Mike GreenMike Green Posts: 23,101
    edited 2006-10-12 22:00
    A true value of all one bits (not necessarily -1 for word or byte operations) is useful for building a bitmask for bit-wise logical operations. Using a single 1 bit is less useful that way.
  • NewzedNewzed Posts: 2,503
    edited 2006-10-24 21:37

    This program, PropWorks V2.20, is sort of a Help program. It has the following options:

    T – Toggle Display

    C – Cursor positioning

    M – Using the Pbasic */ operator in Propeller

    P – Color file

    R – Generate random number

    S - Search for SPIN operator meaning

    W – Talk to a Stamp

    In addition to performing the various options, along with examples, you can look at the program itself to see how each option is generated within the program. And therein lies the real value of this program – you can study the various methods used and easily incorporate them into your own program. The Color file does not display all colors because of screen size, and the S option only covers 29 of the most frequently used operators.

    This program runs in Mike Green’s OS format and requires a VGA. The OS is the best system for VGA display I have seen yet.

    The VGA start pin is Pin 8, and the keyboard pins are 26 and 27. You might have to change these in the CON block. The attached .zip file contains all the required objects.

    If you have any problems running this program, please post them here.

    Sid

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sid Weaver
    Don't have VGA?

    Newzed@aol.com
Sign In or Register to comment.