Hello,
For the new functions, if you are storing string data within local array variables, this may be using copious quantities of additional stack, which may be overwriting your global and static variables. You might try increasing the stack size sufficiently to accommodate the additional variables.
Again, the map file will indicate where the globals are stored, relative to the stack. Unless you are using a device with a large amount of RAM, it is a good idea to keep the top of stack and the globals separated by as wide a margin as possible. This might involve placing some of the globals within zero page RAM.
Often, the default PRM file is not optimum in respect of variable and stack placements, so may need to be altered.
Regards,
Mac