Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 16:30 02 Aug 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 : What's The Relationship with SC?

     Page 3 of 3    
Author Message
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 07:38pm 05 Jun 2020
Copy link to clipboard 
Print this post

Peter,

Good news!

I got my own version of strrev.c to compile and work.

So far (not far), so good.  With work this probably means CSubs / CFuncs are doable for more interesting code.  Obviously needs some way to hook into MMBasic's internals, akin to what's been done before (table of pointers or whatever).

Because I'm used to them, I'm using just gcc (as cross-compiler) and its relatives.

Anyway, best progressed after the peak passes of the CMM2 release, any time the code is available / time allows.

John
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10315
Posted: 10:45am 06 Jun 2020
Copy link to clipboard 
Print this post

Just done a check and the commands CFUNCTION/CSUB/END CFUNCTION/END CSUB take 4 command slots. There is only one free command slot on the CMM2 so I'm afraid Cfunctions won't be making an appearance unless someone want to re-engineer the entire internals of MMbasic - sorry. That is the reason I removed them from the ArmmiteH7
Edited 2020-06-06 20:46 by matherp
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 10:49am 06 Jun 2020
Copy link to clipboard 
Print this post

AKA This task is left as an exercise for the reader
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10315
Posted: 12:17pm 06 Jun 2020
Copy link to clipboard 
Print this post

  Quote  AKA This task is left as an exercise for the reader


No this is a biggy. The structure of handling in-built commands and functions is core to all versions of MMbasic on all platforms. There is an absolute limit of 127 built-in functions and 127 built-in commands. The code that handles this is spread throughout the guts of Geoff's Basic interpreter. This has been discussed many times on TBS and there is no solution without a major re-write of the interpreter with all the attendant risks of introducing instability
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 12:30pm 06 Jun 2020
Copy link to clipboard 
Print this post

  matherp said  No this is a biggy ...


I was being flippant, quelle surprise

What about the "Obsolete Commands and Functions", would removing some of these free up sufficient slots ?

Regards,

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

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 12:32pm 06 Jun 2020
Copy link to clipboard 
Print this post

Alternatively, left as a big exercise for the reader!

John
 
GregZone
Senior Member

Joined: 22/05/2020
Location: New Zealand
Posts: 114
Posted: 08:51pm 06 Jun 2020
Copy link to clipboard 
Print this post

  matherp said  There is only one free command slot on the CMM2

Hmmm... that sounds just like that one last reserved opcode on the 65C816.

ie. The last unused opcode of the 256 possible single byte opcodes was reserved for future 2 byte opcode expansion.  
 
zeitfest
Guru

Joined: 31/07/2019
Location: Australia
Posts: 582
Posted: 02:06am 07 Jun 2020
Copy link to clipboard 
Print this post

Get 'em while they're hot !!

MMite

   
Edited 2020-06-07 12:07 by zeitfest
 
zeitfest
Guru

Joined: 31/07/2019
Location: Australia
Posts: 582
Posted: 01:20am 25 Jun 2020
Copy link to clipboard 
Print this post

On the original topic..

  Quote  ...SC is a privately owned entity and is almost certainly dependent on ..


To expand this a bit, as far as I can see, SC magazine is published by Silicon Chip Publications Pty Ltd, Silicon Chip itself seems to be a four-unit trust which presumably owns and controls SCPublications.

In general, a trust owning a pty-ltd is a fairly common structure in Aus. The pty-ltd profits go into the trust. The pty-ltd limits relevant liabilities owed by its owners (shareholders), and  trust entities usually have very favorable or non-existent tax.  The downside is, administration is expensive and a lot of paperwork. The arrangements become complex after a while.

So (presumably) SC publishes whatever the trust executors - as decided by the four units - see fit, with/via editorship altering the mix as well.

Fair enough, they are making a quid. Personally I don't buy SC anymore as it became too marketing-driven for my taste. I do read it, but I am not going to pay for it unless it becomes more professional about software quality and systemic testing (which is not the same as beta testing) for any projects that could cause injury.
Besides, I can remember a former editor telling me some years ago, that SC does not publish software projects.  The times, they are a'changing  
 
     Page 3 of 3    
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