66 / 5000 Risultati della traduzione Sorry for the delay in my reply .. yes, it seems like a great idea
Il giorno mar 30 nov 2021 alle ore 13:34 Wolfgang Lenerz via Ql-Users < ql-users@lists.q-v-d.com> ha scritto: > Hi, > > Just to chime in, the newest SMSQmulator (hopefully) to come out in a > few days will do the same, i.e. treat NFA/SFA as win type. > > > There is a reason for (at least for me): > > I use QD extensively. > When QD saves data to a file, it first of all checks the device type via > iof.xinf. If it detects that the drive is registered as a an msdos type > device, it saves the file with line ending CR+LF, instead of the normal > LF as used on win devices. > > If you now try to use the MacroAssembler to assemble a file that > contains macros, this will fail (the MA seems to calculate the number of > bytes it has got, which will be wrong as the NFA driver converts CF+LF > to LF automagically) The MA then resets the file position to somewhere > in the file, corresponding to the number of bytes before the macro (I > suppose to read th emacro again) and that will be wrong, so that it > reads something other in the file and then fails. > > > That being said, might I make a suggestion? > > Giorgio said: > > >>>> The old behavior was that DMEDIUM_DRIVE returned -1 when pointing > >>>> to a dos disk. it was not "correct" but it allowed me to distinguish > the two > >>> types. > > Indeed, that's not the right way, one should use the DMEDIUM_TYPE > function for that (returns 1 - qdos, 2 - msdos etc) - but this won't > help you, as that now returns "qdos" device type for dos and nfa/sfa. > > However, the specifications also provide for a device sub-type, which is > not returned by any function and which, AFAIK is not used. One might > possibly use that to return 1 or 2 as sub-type also. > > I'd be willing to create the new basic keyword for that in SMSQE > ("DMEDIUM_STYPE"). > > Would that be agreeable to all? > > > Have fun! > > Wolfgang > > > > >>>> what do i need it for? > >>>> I use it in a couple of programs .. in particular the new file manager > >>> that > >>>> I have created and which I think I will be able to publish in a few > >>>> weeks. Obviously > >>>> it works the same but in front of each device he placed an icon to be > >>> able > >>>> to identify it if cd / ram / win / dos It would be interesting to be > >>>> able > >>>> to distinguish all the types but obviously I have no idea of the work > >>> this > >>>> entails. Mine is not a criticism, I'm just chatting. > >>>> > >>>> Giorgio > >>>> > >>>> Il giorno ven 26 nov 2021 alle ore 10:09 Marcel Kilgus via Ql-Users < > >>>> ql-users@lists.q-v-d.com> ha scritto: > >>>> > >>>>> Giorgio Garabello via Ql-Users wrote: > >>>>>>> I uploaded a small bugfix release QPC2v5.02. > >>>>>>> > >>>>>>> Switch DMEDIUM_FORMAT for the DOS device to 1 (QDOS) instead of 2 > >>>>>> I have a doubt, how can I now recognize a DOS disk from a WIN one? > >>>>> It has been this way for 20 years, I just reverted it back to the > >>>>> old behavior. > >>>>> > >>>>> Why would you want to recognize a DOS disk from a WIN one? > >>>>> > >>>>> Marcel > >>>>> > >>>>> _______________________________________________ > >>>>> QL-Users Mailing List > >>>>> > >>>> _______________________________________________ > >>>> QL-Users Mailing List > >>>> . > >>> _______________________________________________ > >>> QL-Users Mailing List > >>> > >> _______________________________________________ > >> QL-Users Mailing List > >> > > _______________________________________________ > > QL-Users Mailing List > > > _______________________________________________ > QL-Users Mailing List _______________________________________________ QL-Users Mailing List