¢ GETPAR.MAE¢ ----------¢¢Author: Lizard/BBSL¢Length: 208B¢¢ This piece of code is free. So, you¢can do with it what you want. But¢do NOT forget who has written it and¢credit me in your program which uses¢this.¢¢ Getting parameter from command line¢for: SpartaDOS (>=3.0) and DOS II+/D¢(6.1 & 6.4 for sure).¢¢Returns:¢- flag C: 1 - wrong DOS (must be one¢ of these above),¢- flag Z: 1 - no more parameters¢ (only current drive is¢ set),¢- regs: AX - pointer to parameter¢ (A = LSB, X = MSB),¢- reg: Y - parameter length.¢¢ The parameter ends with EOL (155).¢If no disk entered the current is set¢(not that one from the program was¢loaded!!!).¢¢ NOTEs:¢ ======¢¢1. The function recognizes DOS by¢ DOSFLG ($0700):¢ 'S - SpartaDOS,¢ 'D or Inv.'D - DOS II+/D.¢ "Inv." means in inverse.¢¢2. DOS II+/D: First parameter MUST be¢ got before any action of channel¢ #0!¢¢3. DOS II+/D: A parameter is copied¢ to initialization and SpartaDOS¢ parts of the function.¢¢ Lizard.¢