Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 05:30 10 May 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 : CMM2: V5.05.04 beta

     Page 3 of 5    
Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10066
Posted: 10:15am 03 Jul 2020
Copy link to clipboard 
Print this post

  Quote  Was this distinct from TTS ? and does TTS provide a mechanism to produce speech through the audio jack (is that what "on the DAC outputs" means) ?

It was a mechanism of playing TTS over the top of a MOD file and due to my poor proof reading didn't make the manual.

PLAY TTS outputs through the audio jack. It uses the SAM TTS code and results are "interesting"

  Quote  On a matter of procedure should we be reporting bugs we find when running 5.05.04 beta in this thread, or in the "CMM2: V5.05.03 Bug Reports" thread ?


Bugs that are in 5.05.03 in the main thread. New bugs here
Edited 2020-07-03 20:18 by matherp
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4251
Posted: 10:21am 03 Jul 2020
Copy link to clipboard 
Print this post

  matherp said  PLAY TTS outputs through the audio jack. It uses the SAM TTS code and results are "interesting"


Great, I must give it a try. You just mean TTS don't you, not PLAY TTS ... or is there a mistake in the manual?

  matherp said  Bugs that are in 5.05.03 in the main thread. New bugs here


OK ... I apologise in advance for not back-checking any "new" bugs

Regards,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4251
Posted: 02:36pm 05 Jul 2020
Copy link to clipboard 
Print this post

Hi Peter,

I reported these issues before but perhaps they became lost in the scrum.

I think they probably started when I persuaded you added support to allow the 'cmdline' argument to RUN to be a string variable/expression. If so then I put my hand up, "Mea culpa!" Am I correct in thinking that the addition of the EXECUTE command makes my earlier request superflous hopefully meaning you can just back out the offending change?

> Colour Maximite 2
MMBasic Version 5.05.04b3a
Copyright 2011-2020 Geoff Graham
Copyright 2016-2020 Peter Mather

> list "test.bas"
Print Mm.CmdLine$

> run "test.bas", "foo"
foo

> run "test.bas", "foo bar"
foo bar

> run "test.bas", "foo" "bar"
Error: Expression syntax

> *test "foo"
foo

> *test "foo bar"
Error: No closing quote

> *test "foo" "bar"
Error: No closing quote


Issues shown:

1. If the 'cmdline' contains quotes then those quotes should be passed verbatim to MM.CMDLINE$. The manual specifically states: 'cmdline' is not processed by MMBasic
so it can contain numbers, commas, quoted strings, etc.


2. "foo" "bar" should be a valid 'cmdline' not an "Expression syntax" error.

3. There should be no "No closing quote" error for the examples using *.

Regards,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10066
Posted: 05:18pm 05 Jul 2020
Copy link to clipboard 
Print this post

  Quote  Am I correct in thinking that the addition of the EXECUTE command makes my earlier request superflous hopefully meaning you can just back out the offending change?


Yes: I'll back it out at some stage before 5.05.04 is properly released
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10066
Posted: 01:05pm 06 Jul 2020
Copy link to clipboard 
Print this post

Version 5.05.04b3b

http://geoffg.net/Downloads/Maximite/CMM2_Beta.zip

Breaking change
NUNCHUK command replaced by WII NUNCHUK otherwise syntax the same

Bugs fixed
Removed the faulty ability to use the RUN command with a string variable to be passed to MM.CMDLINE$ - use EXECUTE to achieve the same result

Functional changes
Support for FR keyboard - thanks to darthvader
Implementation of CSUBs completed. Header file included in the download including a wide selection of firmware routines that can be called from a CFunction
Improved error reporting of IF statements
Edited 2020-07-06 23:36 by matherp
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4251
Posted: 02:24pm 06 Jul 2020
Copy link to clipboard 
Print this post

Thanks Peter,

Unfortunately there are still problems using the * command with quoted strings in the cmdline:
> list "test.bas"
Print Mm.CmdLine$
> run "test", foo
foo

> run "test", "foo"
"foo"

> run "test", "foo bar"
"foo bar"

> run "test", "foo" "bar"
"foo" "bar"

> *test foo
foo

> *test "foo"
"foo"

> *test "foo bar"
Error: No closing quote

> *test "foo" "bar"
Error: No closing quote


Regards,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10066
Posted: 03:12pm 06 Jul 2020
Copy link to clipboard 
Print this post

Please download again and make sure the executable is V5.05.04b1c. Either you somehow got an old version or I zipped the wrong one
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4251
Posted: 03:26pm 06 Jul 2020
Copy link to clipboard 
Print this post

  matherp said  Please download again and make sure the executable is V5.05.04b1c. Either you somehow got an old version or I zipped the wrong one


Looks like it was the former, I seemed to have download b1b.

Anyway it works now, thank you,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10066
Posted: 03:33pm 06 Jul 2020
Copy link to clipboard 
Print this post

  Quote  Looks like it was the former, I seemed to have download b1b.


Actually it was very useful as I found a really obscure bug. I have a directory called "test" but not a file "test.bas". When I tried to EDIT "test" I got an error "File not found" instead of it creating the new file - WTF?. This was because the check for existence found the directory and returned OK but when I tried to open it it failed so I've now been through the entire system and now added a check for the return being a directory whenever I test for a file existing.
 
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 868
Posted: 04:06am 07 Jul 2020
Copy link to clipboard 
Print this post

Hello Peter,
Could you possibly check that the link and zip are as you intend?

  Quote  Version 5.05.04b3b

http://geoffg.net/Downloads/Maximite/CMM2_Beta.zip


It gives me CMM2V5.05.05b3d.bin but the README.TXT gives the latest as V5.05.04b2d and in your comment on Lunar Lander you refer to 5.05.04b3d as being "just posted".

I am confused . . .

Cheers,

Andrew

(PS: the Lunar Lander works a treat, thanks - not that I have landed it yet)
 
Sasquatch

Guru

Joined: 08/05/2020
Location: United States
Posts: 376
Posted: 04:27am 07 Jul 2020
Copy link to clipboard 
Print this post

I also downloaded the latest Beta version and it reports 5.05.04b1r on the start screen and CSub is not working?
-Carl
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1828
Posted: 05:41am 07 Jul 2020
Copy link to clipboard 
Print this post

Have you tried refreshing the cache on the browser, I've downloaded that this morning and the screen says says 5.05.04b2b

Edit that was for the one yesterday evening.  

The new file download has the bin file is labelled CMM2V5.05.05b3d.

The file I downloaded late yesterday had a bin file labelled CMM2V5.05.04b2b and that's what is displaying, I have not installed the one I just downloaded via that link.

Mike.
Edited 2020-07-07 15:45 by KeepIS
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10066
Posted: 07:09am 07 Jul 2020
Copy link to clipboard 
Print this post

  Quote  It gives me CMM2V5.05.05b3d.bin but the README.TXT gives the latest as V5.05.04b2d and in your comment on Lunar Lander you refer to 5.05.04b3d as being "just posted".

Typo in the readme - sorry. Now fixed
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10066
Posted: 09:54am 07 Jul 2020
Copy link to clipboard 
Print this post

New version is V5.05.04b3e

http://geoffg.net/Downloads/Maximite/CMM2_Beta.zip

Bug fixes
Fixed minor colour variations between sprites and drawing commands in Legacy mode
Imposed checks on MODE and OPTION LEGACY commands to only allow legacy in 8-bit colour mode
Allow comment lines in CMM1 sprite files

New Functionality
Additional items added to ARMCFunctions.h
Added additional parameter to SPRITE READ SPRITE READ [#]n, x , y, w, h [,page_number]
This specifies which page to read from. If omitted it defaults to the write page

Other
MMBasic for dos CSUB generation program added to ZIP file
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3309
Posted: 01:15pm 07 Jul 2020
Copy link to clipboard 
Print this post

  matherp said  New version is V5.05.04b3e

...

MMBasic for dos CSUB generation program added to ZIP file


Wow, now that's slipping in a big one. I assume that will allow for graphics--the biggest thing lacking in MMBasic DOS (in my opinion). But if MMBasic/DOS is being looked at for improvement, perhaps I will await developments.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10066
Posted: 01:34pm 07 Jul 2020
Copy link to clipboard 
Print this post

  Quote  Wow, now that's slipping in a big one.


Wrong end of the stick I'm afraid

What's included is a program written in MMBasic for DOS that converts .ELF files for the CMM2 into Basic statements
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3309
Posted: 01:39pm 07 Jul 2020
Copy link to clipboard 
Print this post

Ahh, dang.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3309
Posted: 01:42pm 07 Jul 2020
Copy link to clipboard 
Print this post

And, doh.

It's already easy to compile MMBasic for DOS if someone wishes to add features, assuming the appropriate C skills and understanding of the program's structures (so as far as "easy" goes, YMMV).
Edited 2020-07-07 23:43 by lizby
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
Sasquatch

Guru

Joined: 08/05/2020
Location: United States
Posts: 376
Posted: 01:43pm 07 Jul 2020
Copy link to clipboard 
Print this post

  lizby said  
Wow, now that's slipping in a big one. I assume that will allow for graphics--the biggest thing lacking in MMBasic DOS (in my opinion). But if MMBasic/DOS is being looked at for improvement, perhaps I will await developments.


It's actually a MMBasic DOS program that helps generate the MMBasic code for CFunctions (actually CSub) on the CMM2.  So it's really not an enhancement to MMBasic DOS.

Edit: Peter responded while I was typing.  Any way to delete a post?
Edited 2020-07-07 23:45 by Sasquatch
-Carl
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4251
Posted: 09:53pm 07 Jul 2020
Copy link to clipboard 
Print this post

BUG: RUN is still not passing cmdline verbatim

> list "test.bas"
Print Mm.CmdLine$
> run "test.bas", foo/bar
foo»bar
> run "test.bas", foo\bar
foo¼bar


Regards,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
     Page 3 of 5    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025