PDA

View Full Version : PropWorks



Newzed
10-11-2006, 11:53 PM
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 (mailto:Module?Newzed@aol.com)

Newzed
10-13-2006, 04:23 AM
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 (mailto:Module?Newzed@aol.com)

Mike Green
10-13-2006, 05:00 AM
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.

Newzed
10-25-2006, 04:37 AM
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 (mailto:Module?Newzed@aol.com)