Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 20:53 27 Mar 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 : Reset/empty string ARRAY$ ?

     Page 2 of 2    
Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4200
Posted: 12:23pm 11 Mar 2025
Copy link to clipboard 
Print this post

  matherp said  
  Quote  On reflection I suspect it is one byte containing the current length and *7* characters.


Doesn't work like that. The vartbl entry still contains a pointer so nothing else needs changing. For short strings it points to the second element of the dimension array which is repurposed to contain the string


Ah right, thanks Peter, that would work too. Isn't the dimension array (minus one element) on the RP2040 large enough to hold 10 bytes then ? ... but the code is copied from the CMM2 which had a lower value of MAXDIM, that explains it.

Tom
MMBasic for Linux, 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 2025