Is there a method, within BASIC, to tell whether the program is running on NG or LT?

I'm steadily using NG, LT, and even sometimes the original BASIC Engine in 3 different locations, plus in a vehicle at times. When a little bit more is done on Breakout, I upload the file to Google Drive, then when I use a different system, I download the file again. Each of the microSD cards in each system are mostly unique. On Breakout, for example, images are loaded into string arrays and use the full "/sd/breakout/assets/16x16tiles2/xtile1.png," to make it easier to use on each system. If there is an easy method to tell whether the system is LT or NG, there could be a check in the beginning of Breakout to change "/sd/breakout/assets/xxx" to "/basic/breakout/assets/xxx"

No big deal if there isn't a method. This is mostly a me problem, and I really need to learn to use Git 😄

  • uli replied to this.
    6 days later

    painintheworld There will be with the next build: SYS(2) will return a number indicating the type of system. See HELP SYS for more info. I have backported this to ESP8266, ESP32 and H3 bare-metal as well, but I doubt most people will update just for that, so you will probably have to do some error handling as well.

    Edit: It's out now. If you for some reason need to know the CPU architecture of an LT system, you can use ENVIRON$("HOSTTYPE").

      Powered by: FreeFlarum.
      (remove this footer)