gp2000
Experienced Member
I'm working on a program for the TRS-80 Model I/III/4 machines and I'd like it to run under all the major DOSes: TRS-DOS, LDOS, LSDOS, NEWDOS, MULTIDOS, DOSPLUS and so on. So far I'm not having any problems with file I/O, but there is considerable variation in how to find the highest available memory location. Some of the DOSes have a call for it, others store it in a memory location which varies depending on the DOS and machine type.
While all I really need is code to get the HIGH memory location, generic code to get the type of DOS and its version may be ultimately necessary.
Any code or pointers for this would be much appreciated.
One promising avenue is OSVER$ which I think is $403e on Model I DOSes and $441F on Model III. Am currently treating Model 4 machines as LSDOS/TRSDOS but MULTIDOS will likely change that.
While all I really need is code to get the HIGH memory location, generic code to get the type of DOS and its version may be ultimately necessary.
Any code or pointers for this would be much appreciated.
One promising avenue is OSVER$ which I think is $403e on Model I DOSes and $441F on Model III. Am currently treating Model 4 machines as LSDOS/TRSDOS but MULTIDOS will likely change that.