Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 13:28 07 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Syntax questions.

     Page 2 of 2    
Author Message
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6269
Posted: 01:27pm 05 Jul 2016
Copy link to clipboard 
Print this post

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 States
Posts: 769
Posted: 05:13pm 06 Jul 2016
Copy link to clipboard 
Print this post

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 States
Posts: 769
Posted: 05:33pm 06 Jul 2016
Copy link to clipboard 
Print this post

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: Australia
Posts: 1667
Posted: 11:27pm 06 Jul 2016
Copy link to clipboard 
Print this post

  Paul_L said   Hi Phil,

My problem is I/O pins.

The main processor board has to read 15 to 17 of the digital temperature sensors.

I need about 37 I/O pins on the main processor board. I don't think the backpacks will do it.
[/Quote]

I didn't expect for a moment that a 28 pin back pack would meet your requirements.

I see it more as a testing & development environment.

It would give you access to the latest software version & a small scale grapic test environment.

I've played with the DOS MMbasic, but it is not quite like 5.2 in many respects.

[Quote]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.

Assembly of this microscopic stuff by me is out of the question.
[/quote]

I'd be quite happy to assemble something for you, forward it on, ready to just be plugged into a USB. It would just require a USB serial interface. That could be easily organised.

[Quote]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.[/quote]

I'm around 25 years you junior. I like to say what I think, but still happy to help out if possible.

I was taught at an early age to "Respect you Elders", and realise you can learn from them (probably a dying breed).

Feel free to PM me if that's of any interest.

Cheers

Phil.
 
Paul_L
Guru

Joined: 03/03/2016
Location: United States
Posts: 769
Posted: 12:37pm 07 Jul 2016
Copy link to clipboard 
Print this post

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.
 
     Page 2 of 2    
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025