![]() |
Forum Index : Microcontroller and PC projects : What's The Relationship with SC?
![]() ![]() |
|||||
Author | Message | ||||
JohnS Guru ![]() Joined: 18/11/2011 Location: United KingdomPosts: 4044 |
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 KingdomPosts: 10315 |
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 KingdomPosts: 4311 |
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 KingdomPosts: 10315 |
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 KingdomPosts: 4311 |
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 KingdomPosts: 4044 |
Alternatively, left as a big exercise for the reader! John |
||||
GregZone Senior Member ![]() Joined: 22/05/2020 Location: New ZealandPosts: 114 |
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: AustraliaPosts: 582 |
Get 'em while they're hot !! MMite ![]() ![]() ![]() Edited 2020-06-07 12:07 by zeitfest |
||||
zeitfest Guru ![]() Joined: 31/07/2019 Location: AustraliaPosts: 582 |
On the original topic.. 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 ![]() |
||||
![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |