Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 15:45 05 May 2024 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 : New version of MMBasic (ver 4.3A)

Author Message
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3165
Posted: 05:08pm 14 Mar 2013
Copy link to clipboard 
Print this post

Just in case you are not on my mailing list, this is to advise that a new version of MMBasic (ver 4.3A) is available for download from http://geoffg.net/maximite.html#Downloads

This is a minor update that fixes a couple of bugs and adds some extra facilities. The Change Log and the MMBasic Language Manual (included in the update download) details the changes.

The main new feature is the implied RUN. This means that, to run a program you can omit the RUN command (ie, just type the filename directly) and the program will be run. If you add a command line it will be saved in a special read only variable and can be retrieved by the program. For example, you can now type the following at the command line:
FORMAT INFILE.TXT OUTFILE.TXT

and the program FORMAT.BAS will be run with the command line arguments ("INFILE.TXT OUTFILE.TXT") saved in a read only variable.

Using this you can make MMBasic even more DOS like.

If you have the source, that has also been updated and can be acquired from http://mmbasic.com

Geoff

Geoff Graham - http://geoffg.net
 
shoebuckle
Senior Member

Joined: 21/01/2012
Location: Australia
Posts: 189
Posted: 08:12pm 14 Mar 2013
Copy link to clipboard 
Print this post

FORMAT.BAS in the current User Program Library adds an optional switch to the command line. The full command is:

FORMAT infile[.BAS] outfile[.BAS] /p

where:
- infile is checked to see if it exists.
- Outfile cannot be the same as infile. User is prompted to overwrite if it exists.
- .BAS is assumed for a file if an extension isn't provided
- Switch /P is optional and pauses the program listing at a screenful. If omitted, the listing scrolls through the output file as it is written out.
- You don't surround filenames with double quotes. The whole parameter list after the program name is assumed to be a single string.

The program can also be run in the traditional way (RUN "Format[.bas]") and prompts for the filenames and pause switch.
Cheers,
Hugh
Edited by shoebuckle 2013-03-16
 
ajkw
Senior Member

Joined: 29/06/2011
Location: Australia
Posts: 290
Posted: 10:51pm 15 Mar 2013
Copy link to clipboard 
Print this post

Just loaded 4.3A (edit: original Altronics Maximite)

This 'preexisting' line of code now throws an error

S = 24110.5 + 8640184.812999999 * T0

which is from Tassy Jim's sunrise/sunset program

http://www.thebackshed.com/forum/forum_posts.asp?TID=4434&KW =sunrise

line number 430


Edited by ajkw 2013-03-17
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5913
Posted: 10:37am 16 Mar 2013
Copy link to clipboard 
Print this post

Try changing the line from
430 S = 24110.5 + 8640184.812999999 * T0


to
430 S = 24110.5 + 8640184.8 * T0


The ridiculous number of significant figures might have confused it.
I really must go back and change that and a few other similar numbers to agree with the precision of 32 but floats.

Jim
VK7JH
MMedit   MMBasic Help
 
ajkw
Senior Member

Joined: 29/06/2011
Location: Australia
Posts: 290
Posted: 11:39am 16 Mar 2013
Copy link to clipboard 
Print this post

Jim,

That was my take too but I thought I would post it because there was no mention of number handling in the change log.

Unfortunately I cannot use 4.3A anyway as it causes my hardware/video the very same problem that other particular previous versions have also done so.

Anthony.Edited by ajkw 2013-03-17
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3165
Posted: 12:46pm 16 Mar 2013
Copy link to clipboard 
Print this post

  ajkw said  Unfortunately I cannot use 4.3A anyway as it causes my hardware/video the very same problem that other particular previous versions have also done so.

What issue is that? What version works OK for you?
Geoff Graham - http://geoffg.net
 
ajkw
Senior Member

Joined: 29/06/2011
Location: Australia
Posts: 290
Posted: 03:09pm 16 Mar 2013
Copy link to clipboard 
Print this post

Geoff,

Per this thread for instance,

http://www.thebackshed.com/forum/forum_posts.asp?TID=5243&KW =shimmer&PN=0&TPN=1

Except it (the shimmer) is not heat as such but different versions. Some are stable some are not (on my MM and perhaps a couple of others at least anyway).

I will send you an email with some video showing the difference between 4.3 and 4.3A

Anthony.
 
shoebuckle
Senior Member

Joined: 21/01/2012
Location: Australia
Posts: 189
Posted: 03:24pm 16 Mar 2013
Copy link to clipboard 
Print this post

Unfortunately my shimmer has returned but only for a short time after I turn the MM on. For much of the summer using v4.3 it went away but came back again about 2 weeks ago (before I started using v4.3A). No idea why. I would have expected the warmer weather to have made it worse. Ours is not to reason why!
Cheers,
Hugh
 
Print this page


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

© JAQ Software 2024