Posted: 05:21pm 22 Feb 2022
Quote Will incorporate in the next alpha for MMB4L, though that is some time away. You may need to tweak signed/unsigned and the static initialisation depending on whether ProgMemory is a constant or a variable. For the CMM2 it is: static char* SaveNextDataLine = NULL; static int SaveNextData = 0; if (checkstring(cmdline, (char*)"SAVE")) { SaveNextDataLine = NextDataLine; SaveNextData = NextData; return; } if (checkstring(cmdline, (char*)"RESTORE")) { NextDataLine = SaveNextDataLine; NextData = SaveNextData; return; } getargs(&cmdline, (MAX_ARG_COUNT * 2) - 1, ","); // getargs macro must be the first executable stmt in a block if(SaveNextDataLine == NULL)SaveNextDataLine = ProgMemory;