mmruzek
Experienced Member
Hi, I am doing some coding in GW-Basic for an XT compatible running DOS 3.3. I have a program that parses latitude and longitude from a GPS module connected to the COM port. I would like store the location information in the DOS system enviroment such that the location is available to other GW-Basic programs when they are run. So basically I would like to have global variables in DOS.
My first thought was to either try to define new environment variables in DOS, or re-purpose exising environment variables for my own purposes. (Hopefully that the system would not notice I am using!) Unfortunately I see the list of standard environment variables is pretty darn short. Any ideas for this path?
Another thing I could do is reserve some memory with a short TSR that 'protects' some area of memory that I access with PEEKs and POKEs. In that case I would need to reliably know where the TSR is loading in memory.
I'm guessing there are some other ways to do this. I would appreciate your thoughts and ideas! Thanks. Michael
My first thought was to either try to define new environment variables in DOS, or re-purpose exising environment variables for my own purposes. (Hopefully that the system would not notice I am using!) Unfortunately I see the list of standard environment variables is pretty darn short. Any ideas for this path?
Another thing I could do is reserve some memory with a short TSR that 'protects' some area of memory that I access with PEEKs and POKEs. In that case I would need to reliably know where the TSR is loading in memory.
I'm guessing there are some other ways to do this. I would appreciate your thoughts and ideas! Thanks. Michael