![]() |
Forum Index : Microcontroller and PC projects : Syntax questions.
![]() ![]() |
|||||
Author | Message | ||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6269 |
Paul. The micromite came after the CMM so things have progressed a bit. GOSUB target...RETURN is still valid for both ststems and follows the original GW Basic style. SUB and END SUB is a newer style and both can be used with the later MMBasics SUB and END SUB would be the recommended style for new code but the older method is handy when converting code from other Basic dialects. VAL("123.6#!!xyz:") will return a number 123.6 in most Basic dialects. Usually, it converts that start of the string and gives up when a non-numeric character is reached. This is true for some very modern languages. The manual has been improved over time. The latest manual has the additional line added to the INSTR description. "The function returns zero if 'string-pattern$' is not found." Geoff is always happy to take suggestions for improving the manuals. The DOS version runs happily on W7 and W10 32 and 64bit so give it a try. Remember, it is V4.5 so closer to CMM than micromite. http://mmbasic.com/Download/DOS%20MMBasic.zip Jim I have a good friend who is Polish. It took a few years to be able to get his name right. The staff at his place of work called him "Dr Alphabet" VK7JH MMedit |
||||
Paul_L Guru ![]() Joined: 03/03/2016 Location: United StatesPosts: 769 |
Jim, I'll try to get the DOS MMBasic working. An awful lot of this design is hardware dependent so it won't be too much help but I'll give it a go. At Pan Am we hired a guy named Joe Rusczcyck. He was promptly christened Joe Alphabet. I tried to convince people that it should be pronounced Rush-ssiz-shick. They didn't believe me. Then I started telling them that my name is really Pavel Artur Jan Waclaw Lepkowski. They didn't believe that Waclaw is pronounced Vats-waff. Polaks were put here for the sole purpose of confusing the rest of you guys. Pavel Artur Jan Waclaw |
||||
Paul_L Guru ![]() Joined: 03/03/2016 Location: United StatesPosts: 769 |
Hi Phil, My problem is I/O pins. The main processor board has to read 15 to 17 of the digital temperature sensors. I don't want to try to run them on a single line like you have succeeded in doing because they are up to 60 feet from the processor and they are in different directions, sort of in a hub format. The main processor also needs to control 14 to 16 relays. And, I need a serial comm link between the main processor and a user input processor with full handshaking. It looks like I need about 37 I/O pins on the main processor board. I don't think the backpacks will do it. The user control processor has to run a 7 inch touch display and build an output csv file on a removable card. As far as assembly is concerned I don't have a fifteen year old son around here unless my wife has failed to keep me up to date. That's what happens when you're coming up on your 50th wedding anniversary. I'm 76 years old, half blind, and my hands shake. Assembly of this microscopic stuff by me is out of the question. I've been writing code since the 1950s. I'm still pretty good at it, just a little slower now. When I get the code looking right I'll post it here and let you guys try to tear it apart. If it hangs together then I'll worry about getting something assembled. I really can't do it the way you work. Thanks for your ideas anyway. Paul |
||||
Phil23 Guru ![]() Joined: 27/03/2016 Location: AustraliaPosts: 1667 |
|
||||
Paul_L Guru ![]() Joined: 03/03/2016 Location: United StatesPosts: 769 |
Phil, thanks a whole big bunch for your offer to assemble stuff for me. I'm guessing that you just might subcontract some of the work to your son. I just wish that northern NSW was a little less than 10,000 miles from Poughkeepsie NY. I'll let you know when I get this monster mapped out in software a little better. |
||||
![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |