UPI 3.1 (C)1994 Frankenstein¢----------------------------¢¢Files in this archieve:¢¢UPI31 .DOC - This text¢UPI31 .OBJ - UPI object module¢UPI31DEM.COM - UPI demo (try-out)¢¢UPI (Universal Parameter Interface)¢is made for those programmers who¢want to deal with DOS parameters.¢It should be compatible with every¢DOS, although it's impossible for¢me to test this. If you discover¢any bugs when you're using UPI 3.1¢please let me know.¢¢Many DOS's on the Atari 8-bit can¢not pass parameters to programs.¢If such a DOS is used, UPI will give¢its own command line where you can¢type the required parameters.¢¢UPI31.OBJ is currently located at¢address $BA00 to $BBFF.¢The relocatable version is not yet¢finished, but I'm working on it.¢¢Program equates:¢¢UPI = $BA00¢¢GETPAR = UPI¢MAKEFN = UPI+3¢FNBUF = UPI+6¢PARBUF = UPI+9¢DEFDRV = UPI+70¢¢GETPAR¢------¢This routine takes one parameter¢from the command line and stores it¢at PARBUF. The parameter ends with¢a <return> (byte 155).¢¢MAKEFN¢------¢This routine transforms a parameter¢at PARBUF into a filename which can¢be found at FNBUF. So, if you expect¢the parameter to be a filename, you¢have to call GETPAR first, followed¢by MAKEFN.¢The routine will transform a "D:"¢into "Dn:" where n is the default¢drive number. It will also use the¢default drive if no device is¢specified (like in a plain filename).¢¢DEFDRV¢------¢At this address you can find Dn:,¢where n is the default drive number.¢If you only need the single drive¢number (in ASCII), use DEFDRV+1.¢¢¢Frankenstein¢(Freddy Offenga)¢P.F. Catsstraat 43¢8801 VB Franeker¢Holland¢