PicoMite V6.00.02 release candidates - all versions


Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10851
Posted: 01:34pm 13 Mar 2025      

- You've decided not to implement a separate BYTE type ?


Correct

  Quote  You've implemented multi-byte function tokens ? If so would you mind posting (or emailing) whether this is 2-bytes for each function token, or a hybrid approach.


No I haven't. I've been sneaky and implemented a single hidden function to process all MM. functions. This now leave me with a few free function slots.

Have a look on github at fun_tilde in functions.c, llist in commands.c, changes to str_replace (fixes a bug where replacements could happen incorrectly) and tokenise in MMBasic.c. I'm going to add MM.CMDLINE$ and the MQTT MM.s as well in the next RC which will get rid of the various background variable creation code that current supports them.

  Quote  these are the equivalent of the command MID$(var$,byteno+1,1)=CHR$(value) and
the function ASC(MID$(var$,byteno+1,1)) but faster and more obvious


No: mid$ starts from 1 not zero like all string functions as does my new command unless there is a bug.
Edited 2025-03-13 23:38 by matherp