Re: [Ql-Users] QPC2 and direct sector access
On 11 Oct 2009, at 22:30, Gerhard Plavec wrote: Yo :) then it's some sort of miracle. Usually I do know what my code can do and what not. The generally used name for this sort of miracle would be bug :)) Usually more code a programmer is generating, more miracles can be discovered... In very rare cases a bug can be used as a feature - that then is real miracle :) This implies that every program contains a miracle (since no program is bug-free)! George ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] QPC2 and direct sector access
Yo :) then it's some sort of miracle. Usually I do know what my code can do and what not. The generally used name for this sort of miracle would be bug :)) Usually more code a programmer is generating, more miracles can be discovered... In very rare cases a bug can be used as a feature - that then is real miracle :) This implies that every program contains a miracle (since no program is bug-free)! Often it's a real miracle when the written code does what the programmer wanted... but may be that's onely a bug :) @+ ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] QPC2 and direct sector access
You are right...;-). That's a lonely bug... Cheers...Ralf - Original Message - From: Gerhard Plavec Often it's a real miracle when the written code does what the programmer wanted... but may be that's onely a bug :) ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] QPC2 and direct sector access
On 10 Oct 2009, at 19:39, matras...@aol.com wrote: then it's some sort of miracle. Usually I do know what my code can do and what not. Not a miracle. A writer of code will certainly usually know what it does. But he may well not know ALL that it does. There is a fault in SMSQ/E that can produce very weird results, which Tony Tebby obviously did not intend and did not know were possible. I mentioned this some time ago. They were to do with the result of an address error in assembler code. George ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] QPC2 and direct sector access
Yo :) then it's some sort of miracle. Usually I do know what my code can do and what not. The generally used name for this sort of miracle would be bug :)) Usually more code a programmer is generating, more miracles can be discovered... In very rare cases a bug can be used as a feature - that then is real miracle :) In this case, there's no bug, so no way to a direct sector access in QPC2 :-( @+ ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] QPC2 and direct sector access
gdgqler wrote: ... then it's some sort of miracle. Usually I do know what my code can do and what not. I would have said the same until, a long time ago, I found someone using my code, usefully, for a purpose I had not imagined. That can happen, but the difference here is that the SMSQ/E side of QPC lives in a virtual sandbox and no matter what you do with my 68k code, you won't be able to extend the API available to it (notwithstanding malicious attacks like stack and buffer overflows perhaps, security was not such a big issue in the design, so while it should be fine I cannot vouch for it). Marcel ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] QPC2 and direct sector access
On 10 Oct 2009, at 13:52, Marcel Kilgus wrote: That can happen, but the difference here is that the SMSQ/E side of QPC lives in a virtual sandbox and no matter what you do with my 68k code, you won't be able to extend the API available to it (notwithstanding malicious attacks like stack and buffer overflows perhaps, security was not such a big issue in the design, so while it should be fine I cannot vouch for it). Good!! George ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] QPC2 and direct sector access
then it's some sort of miracle. Usually I do know what my code can do and what not. No miracles from George's suggestion -Original Message- From: Marcel Kilgus ql-us...@mail.kilgus.net To: ql-us...@q-v-d.com Sent: Fri, 9 Oct 2009 22:53 Subject: Re: [Ql-Users] QPC2 and direct sector access matras...@aol.com wrote: Yes he has, but I will try George's suggestion just in case, as it will only take a miniscule amount of time to try and if it delivers ... then it's some sort of miracle. Usually I do know what my code can do and what not. Its a pity that QPC2 does not support direct sector access to alien formats as other versions of the QL do. The difference is that other versions have to support direct sector access anyway in order to support higher file level functions. It's basically a by-product. On QPC no such support is necessary and thus implementing it is a completely unrelated feature. One that has not been called for very often. (on a related note, direct sector access for floppy discs works of course, for the stated reasons). Marcel ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] QPC2 and direct sector access
On 8 Oct 2009, at 18:24, matras...@aol.com wrote: Does anyone know if there is a way to open a direct sector access channel from SBASIC to a non PC FAT formatted hard disk such as a Q60 formatted compact flash card. I have tried to do this with errt=FOP_DIR(#4,dos4_). While FOP_DIR returns 0 suggesting success the device as seen has a dimension of 0, so that INPUT#4,a$ get an end of file error message. Does the error just mean that there is no LF in the file? I have taken to testing for a final LF before reading files with INPUT. Instead you might try Turbo TK code's INPUT$ which reads a specific number of characters from the channel. and so does not rely on LF. George ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] QPC2 and direct sector access
I think, Marcel has answered...it doesn't work. Cheers...Ralf - Original Message - From: gdgqler Does anyone know if there is a way to open a direct sector access channel from SBASIC to a non PC FAT formatted hard disk such as a Q60 formatted compact flash card. I have tried to do this with errt=FOP_DIR(#4,dos4_). While FOP_DIR returns 0 suggesting success the device as seen has a dimension of 0, so that INPUT#4,a$ get an end of file error message. Does the error just mean that there is no LF in the file? I have taken to testing for a final LF before reading files with INPUT. Instead you might try Turbo TK code's INPUT$ which reads a specific number of characters from the channel. and so does not rely on LF. George ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] QPC2 and direct sector access
Yes he has, but I will try George's suggestion just in case, as it will only take a miniscule amount of time to try and if it delivers a result it will have been an excellent investment as the cost is miniscule. Obviously I am not hopeful as Marcel has given it the thumbs down. Its a pity that QPC2 does not support direct sector access to alien formats as other versions of the QL do. I can read FAT 16 formatted sectors on a CF card on my Q60 from SBASIC transfer from PC to Q60. Absence of this can't be to stop users doing something stupid to their C:\ drive as I can open a direct sector access channel to this and read in the sectors of this drive and presumably screw up windows completely if I write rubbish out to it. Windows has some way of supporting alien formats as the PD Amiga emulators can read Amiga formatted disks and QXLtool can read QL floppy disks from a PC and QXL.win files, but as you say only Marcel can know if this windows process is compatible with QPC2. Regards thanks to you and George and Marcel for the interest Duncan -Original Message- From: Ralf Reköndt ralf.rekoe...@t-online.de To: ql-us...@q-v-d.com Sent: Fri, 9 Oct 2009 17:29 Subject: Re: [Ql-Users] QPC2 and direct sector access I think, Marcel has answered...it doesn't work. Cheers...Ralf - Original Message - From: gdgqler Does anyone know if there is a way to open a direc t sector access channel from SBASIC to a non PC FAT formatted hard disk such as a Q60 formatted compact flash card. I have tried to do this with errt=FOP_DIR(#4,dos4_). While FOP_DIR returns 0 suggesting success the device as seen has a dimension of 0, so that INPUT#4,a$ get an end of file error message. Does the error just mean that there is no LF in the file? I have taken to testing for a final LF before reading files with INPUT. Instead you might try Turbo TK code's INPUT$ which reads a specific number of characters from the channel. and so does not rely on LF. George ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] QPC2 and direct sector access
matras...@aol.com wrote: Yes he has, but I will try George's suggestion just in case, as it will only take a miniscule amount of time to try and if it delivers ... then it's some sort of miracle. Usually I do know what my code can do and what not. Its a pity that QPC2 does not support direct sector access to alien formats as other versions of the QL do. The difference is that other versions have to support direct sector access anyway in order to support higher file level functions. It's basically a by-product. On QPC no such support is necessary and thus implementing it is a completely unrelated feature. One that has not been called for very often. (on a related note, direct sector access for floppy discs works of course, for the stated reasons). Marcel ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
[Ql-Users] QPC2 and direct sector access
Hi, Does anyone know if there is a way to open a direct sector access channel from SBASIC to a non PC FAT formatted hard disk such as a Q60 formatted compact flash card. I have tried to do this with errt=FOP_DIR(#4,dos4_). While FOP_DIR returns 0 suggesting success the device as seen has a dimension of 0, so that INPUT#4,a$ get an end of file error message. Thanks Duncan Neithercut ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] QPC2 and direct sector access
matras...@aol.com wrote: Does anyone know if there is a way to open a direct sector access channel from SBASIC to a non PC FAT formatted hard disk such as a Nope, no way, sorry. Marcel ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm