Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 05:52 25 Nov 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 : Firmware Wish List

     Page 7 of 14    
Author Message
donmck

Guru

Joined: 09/06/2011
Location: Australia
Posts: 1313
Posted: 11:57pm 10 Aug 2011
Copy link to clipboard 
Print this post

  BobDevries said   We already have multi-dimension arrays
However, I can't seem to use "NEXT y,x" as is usual in most BASICs.
Regards,


so it is starting to appear to be a bug, and is not an enhancement?

Cheers Don...
https://www.dontronics.com
 
seco61
Senior Member

Joined: 15/06/2011
Location: Australia
Posts: 205
Posted: 02:13am 11 Aug 2011
Copy link to clipboard 
Print this post

  donmck said  
  BobDevries said   We already have multi-dimension arrays
However, I can't seem to use "NEXT y,x" as is usual in most BASICs.
Regards,


so it is starting to appear to be a bug, and is not an enhancement?

Cheers Don...


Nope - This would be an enhancement request.

The manual clearly states that MMBasic supports the "NEXT x" format only.

Regards

Gerard (vk3cg/vk3grs)

Regards

Gerard (vk3cg/vk3grs)
 
donmck

Guru

Joined: 09/06/2011
Location: Australia
Posts: 1313
Posted: 03:14am 11 Aug 2011
Copy link to clipboard 
Print this post


OK, added

Wish 32: Multi-dimensional arrays, IE: "NEXT y,x"

http://www.themaximitecomputer.com/wish-list-priority-level- poll/

Cheers Don...


https://www.dontronics.com
 
sparkey

Senior Member

Joined: 15/06/2011
Location: Australia
Posts: 819
Posted: 04:17am 11 Aug 2011
Copy link to clipboard 
Print this post

dear don still whishing for sd card format although i have not voted on thepoll since the realease of 2 point 5 Edited by sparkey 2011-08-12
technicians do it with least resistance
 
sparkey

Senior Member

Joined: 15/06/2011
Location: Australia
Posts: 819
Posted: 04:29am 11 Aug 2011
Copy link to clipboard 
Print this post

in regards to wish"10" that has been for filled with "cwd$" if i am not mistaken and needs to be loaded in the autorun am i correct here...regards sparkey
technicians do it with least resistance
 
seco61
Senior Member

Joined: 15/06/2011
Location: Australia
Posts: 205
Posted: 04:44am 11 Aug 2011
Copy link to clipboard 
Print this post

  donmck said  
OK, added

Wish 32: Multi-dimensional arrays, IE: "NEXT y,x"

http://www.themaximitecomputer.com/wish-list-priority-level- poll/

Cheers Don...



Hi Don.

This is not a request for multi-dimensional arrays - they are already there (a max of 8 dimensions).

The request is for an enhancement for the NEXT command associated with the FOR loop. It is to enable nested FOR loops to have one common NEXT command.

eg


10 FOR i = 1 TO 10
20 FOR j = 1 TO 10
30 PRINT i, j, i + j
40 NEXT j
50 NEXT i
60 END

changes to:

10 FOR i = 1 TO 10
20 FOR j = 1 TO 10
30 PRINT i, j, i + j
40 NEXT i,j
50 END



Regards

Gerard (vk3cg/vk3grs)

Regards

Gerard (vk3cg/vk3grs)
 
donmck

Guru

Joined: 09/06/2011
Location: Australia
Posts: 1313
Posted: 06:07am 11 Aug 2011
Copy link to clipboard 
Print this post



Sorry, I misinterpreted.

Thanks Gerard, have fixed the text up.

Cheers Don...
https://www.dontronics.com
 
donmck

Guru

Joined: 09/06/2011
Location: Australia
Posts: 1313
Posted: 06:10am 11 Aug 2011
Copy link to clipboard 
Print this post

  sparkey said   dear don still whishing for sd card format although i have not voted on thepoll since the realease of 2 point 5


Hi Sparkey,

You don't need to re-vote necessarily, but you can.

Not you, but others have requested that I add to the wish list, and some items never get a single vote. Go figure.

Cheers Don...
https://www.dontronics.com
 
donmck

Guru

Joined: 09/06/2011
Location: Australia
Posts: 1313
Posted: 06:12am 11 Aug 2011
Copy link to clipboard 
Print this post

  sparkey said   in regards to wish"10" that has been for filled with "cwd$" if i am not mistaken and needs to be loaded in the autorun am i correct here...regards sparkey


Thanks Sparkey, can any verify what Sparkey has said, and I'll remove the wish.

I am sure others may be covered by now also.

Just to remind users, the wish list is at:
http://www.themaximitecomputer.com/wish-list-priority-level- poll/

Cheers Don...

https://www.dontronics.com
 
BobDevries

Senior Member

Joined: 08/06/2011
Location: Australia
Posts: 266
Posted: 06:25am 11 Aug 2011
Copy link to clipboard 
Print this post

Hi Don,

Yes, Sparkey is correct. wish #10 was supplied as the command CWD$

Regards,

Bob Devries
Dalby, QLD, Australia
 
donmck

Guru

Joined: 09/06/2011
Location: Australia
Posts: 1313
Posted: 06:28am 11 Aug 2011
Copy link to clipboard 
Print this post

  BobDevries said   Hi Don,

Yes, Sparkey is correct. wish #10 was supplied as the command CWD$

Regards,


Thanks Sparkey & Bob, deleted.

Cheers Don...
https://www.dontronics.com
 
sparkey

Senior Member

Joined: 15/06/2011
Location: Australia
Posts: 819
Posted: 07:05am 11 Aug 2011
Copy link to clipboard 
Print this post

sorry don you must be getting so many inputs that some of the outputs have just passed by ..no pun intended..sincearly sparkey..
technicians do it with least resistance
 
sparkey

Senior Member

Joined: 15/06/2011
Location: Australia
Posts: 819
Posted: 07:10am 11 Aug 2011
Copy link to clipboard 
Print this post

ok heres a question for ya all out there is a fat 16 better than a fat 32 ..does either have more quality`s than the other and if i am not mistaken yo can also get a 12 bit fat ..dont quote me on that one i guess there must also be an 8 bit fat ...regards sparkey ...ccw..appreaiacied...
technicians do it with least resistance
 
seco61
Senior Member

Joined: 15/06/2011
Location: Australia
Posts: 205
Posted: 07:28am 11 Aug 2011
Copy link to clipboard 
Print this post

  sparkey said   ok heres a question for ya all out there is a fat 16 better than a fat 32 ..does either have more quality`s than the other and if i am not mistaken yo can also get a 12 bit fat ..dont quote me on that one i guess there must also be an 8 bit fat ...regards sparkey ...ccw..appreaiacied...


For a summary of the differences between FAT 16 and FAT 32 (from a windoze perspective but still relevant) see FAT 16 vs FAT 32

Personally I prefer FAT 32.....

regards

Gerard (vk3cg/vk3grs)

Regards

Gerard (vk3cg/vk3grs)
 
sparkey

Senior Member

Joined: 15/06/2011
Location: Australia
Posts: 819
Posted: 10:02am 11 Aug 2011
Copy link to clipboard 
Print this post

thanks gerard..regards sparkey...but in simplistc form what would be the diff ..ok had a read fat 32 provides much more ...i stand correctted....Edited by sparkey 2011-08-12
technicians do it with least resistance
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3194
Posted: 06:56am 12 Aug 2011
Copy link to clipboard 
Print this post

  BobDevries said   However, I can't seem to use "NEXT y,x" as is usual in most BASICs.

"NEXT y,x" should work. For example the following works as expected:

10 FOR i = 1 TO 4
20 FOR j = 1 TO 4
30 PRINT i * j
40 NEXT i, j

But, I admit that the manual does not document it. I will fix that in the next release.

Geoff
Geoff Graham - http://geoffg.net
 
bigmik

Guru

Joined: 20/06/2011
Location: Australia
Posts: 2914
Posted: 08:05am 12 Aug 2011
Copy link to clipboard 
Print this post

  Geoffg said  
  BobDevries said   However, I can't seem to use "NEXT y,x" as is usual in most BASICs.

"NEXT y,x" should work. For example the following works as expected:

10 FOR i = 1 TO 4
20 FOR j = 1 TO 4
30 PRINT i * j
40 NEXT i, j

But, I admit that the manual does not document it. I will fix that in the next release.

Geoff


It has been a while since I used nested for-next loops but shouldnt the internal loops be executed before the outer loops ?

What I mean is that line 40 should read as follows:

40 NEXT j, i

ie: do the J loops before the next lot of I loops otherwise the J loops wont get done till all the I's have completed.

Mik
Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<<
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3194
Posted: 09:09am 12 Aug 2011
Copy link to clipboard 
Print this post

  bigmik said  It has been a while since I used nested for-next loops but shouldnt the internal loops be executed before the outer loops ?

What I mean is that line 40 should read as follows:

40 NEXT j, i

Sorry, you are quite right. It should have been NEXT j, i

Geoff
Geoff Graham - http://geoffg.net
 
n8mdl
Newbie

Joined: 11/08/2011
Location: United States
Posts: 11
Posted: 11:28pm 12 Aug 2011
Copy link to clipboard 
Print this post

Ok, got my SM1 today (thanks Don! - oh, and the wife loved the kuala...).
It does indeed support multi-dimensional arrays - and nested loops.

Suppose I should probably "read" the manual as opposed to just looking at it.

Geoff, awesome job with mmbasic!

Gary
 
donmck

Guru

Joined: 09/06/2011
Location: Australia
Posts: 1313
Posted: 11:35pm 12 Aug 2011
Copy link to clipboard 
Print this post

  n8mdl said   Ok, got my SM1 today (thanks Don! - oh, and the wife loved the kuala...).
It does indeed support multi-dimensional arrays - and nested loops.

Suppose I should probably "read" the manual as opposed to just looking at it.

Geoff, awesome job with mmbasic!

Gary


Great Gary,

I send the genuine Australian (Chinese ) Koalas out with virtually every overseas order. Been doing it for many years. Mixed reaction, but always nice to get good feed back.

And I'll delete the nested loops from the wish list also, as it is obviously working OK.

Cheers Don...

https://www.dontronics.com
 
     Page 7 of 14    
Print this page
© JAQ Software 2024