Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 03:22 06 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 : CMM2: V5.05.04RC1

     Page 2 of 2    
Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8592
Posted: 11:31am 19 Jul 2020
Copy link to clipboard 
Print this post

RC5 now available - fixes some bugs using integer arrays with MATH commands V_PRINT, M_PRINT, SET, and SCALE

http://geoffg.net/Downloads/Maximite/CMM2_Beta.zip
 
mkopack73
Senior Member

Joined: 03/07/2020
Location: United States
Posts: 261
Posted: 03:58pm 19 Jul 2020
Copy link to clipboard 
Print this post

Ok not sure if this is a bug or not -

If I have the nunchuk plugged in and do a Wii classic open it works (and Vice versa).

I assume this is ok since it’s the same i2C protocol and data flowing. I assume we need to query the T option to determine which was actually plugged in? I assume you also didn’t do the check internally to keep the 2 from failing if the opposite command was used because of the desire to use these commands for talking to other i2C devices?



Also, I’m confused on the: on error skip N
I put that before the open classic call to try to skip the 2 lines after it (a print and then the close) but it always seems to execute the print. I’m not sure what I’m doing wrong.

Any chance in the future of getting an ON Error goto label. ??? (Thinking rudimentary equivalent to C++/java try/catch handling )
Edited 2020-07-20 02:00 by mkopack73
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3018
Posted: 08:06pm 19 Jul 2020
Copy link to clipboard 
Print this post

On CMM2, is there a convenient way to read a file into a longstring variable?
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5914
Posted: 10:21pm 19 Jul 2020
Copy link to clipboard 
Print this post

  lizby said  On CMM2, is there a convenient way to read a file into a longstring variable?


No one step method but easy enough with a few lines of code

INPUT 255 bytes into a normal string and then LONGSTRING APPEND
repeat until EOF reached.

Jim
VK7JH
MMedit   MMBasic Help
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3018
Posted: 10:44pm 19 Jul 2020
Copy link to clipboard 
Print this post

Thank, Jim, that's just what I've been doing.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
thwill

Guru

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

BUG: Still something fishy going on with * and command-line arguments


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

> list "test.bas"
Print Mm.CmdLine$
> *test "test"
"test"
> *test "testa"
"testa"
> *test "testab"
"testab"
> *test "testabc"
Error: Expression syntax

> *test testabc
testabc
> *test testabcde
Error: Expression syntax


I can think of no obvious reason for the "Expression syntax" errors that occur when the cmdline length reaches 9 characters.

Regards,

Tom
Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
     Page 2 of 2    
Print this page


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

© JAQ Software 2024