Re: [Ql-Users] PRINT_USING bug

2017-02-12 Thread pjwitte

On 12/02/2017 21:13, Dilwyn Jones wrote:
Yes - if you read the notes in the SBASIC / SuperBASIC Reference 
Manual, you will see that we also spotted this issue in various 
Toolkit II manuals...  From memory it took me a while to work out 
the correct parameter!
Thankfully, the SMSQ/E manual has been correct at least (says he, 
breathing a sigh of relief having just issued an update!)
Good work, Dilwyn and Rich. These are obviously the definitive manuals 
to consult - short of RTFB :)


Per
___
QL-Users Mailing List


Re: [Ql-Users] PRINT_USING bug

2017-02-12 Thread Dilwyn Jones
Yes - if you read the notes in the SBASIC / SuperBASIC Reference Manual, 
you will see that we also spotted this issue in various Toolkit II 
manuals...  From memory it took me a while to work out the correct 
parameter!
Thankfully, the SMSQ/E manual has been correct at least (says he, breathing 
a sigh of relief having just issued an update!)


Dilwyn 


___
QL-Users Mailing List


Re: [Ql-Users] PRINT_USING bug

2017-02-12 Thread RWAP Software



On 2017-02-12 17:52, Dilwyn Jones wrote:

I discovered a minor bug in SMSQ/E V 3.28's SBASIC today: In
PRINT_USING the @ cancel character doesnt work as advertised. I know
the danger of reporting something trivial like this is that someone
will say "Ok, then fix it!" ;) It may (or may not) be trivial to 
fix,
I havent got round to checking, its just that the distraction would 
be

rather inconvenient right now.. Also, the bug may be in the manual,
and somebody may already have the answer to that?

Try:

PRINT_USING '#  @-  #', 1, 2

It SHOULD output

1 -  2

Instead it outputs

1 @2



If I am reading my own notes correctly in the SBASIC / SuperBASIC
Reference Manual you are using the @ symbol instead of the (c)
symbol

http://superbasic-manual.readthedocs.io/en/latest/KeywordsP.clean.html#print-using


Ah, thanks, Rich. The bug was in the QPC2 V1.02 manual  There 
are a few more there which I may send to the Author once I get round 
to it.

Interestingly, the Miracle Systems manuals for Toolkit 2 also state to
use the @ AT symbol (I'm looking at Gold Card manual).

Dilwyn

___
QL-Users Mailing List


Yes - if you read the notes in the SBASIC / SuperBASIC Reference Manual, 
you will see that we also spotted this issue in various Toolkit II 
manuals...  From memory it took me a while to work out the correct 
parameter!


Rich Mellor RWAP Software www.rwapsoftware.co.uk www.sellmyretro.com


___
QL-Users Mailing List


[Ql-Users] SMSQ/E manual v1.04

2017-02-12 Thread Dilwyn Jones

SMSQ/E Manual v1.04

I’ve released a new version of the SMSQ/E and SBASIC manual. Version 1.04 
adds information about the Recent Thing, ALPHA_BLEND keywords and updates 
the section on installations of the various versions, especially the Aurora 
version. A number of minor typos have also been corrected.


The manual is available from the eBooks page on my website, to download as 
PDF, Word or three eBook formats (I find it handy to keep a copy on my 
kindle as a reference to save my bookshelves bulging under all the QL 
guides!).


http://www.dilwyn.me.uk/docs/ebooks/index.html

There is also an HTML version which can be read online:
http://www.dilwyn.me.uk/docs/ebooks/smsqe/SMSQE_A4.htm 


___
QL-Users Mailing List

Re: [Ql-Users] SBASIC 'ls' procedure

2017-02-12 Thread Jan Bredenbeek
>> To save you reinventing the wheel Jan, Norman Dunbar's DJToolkit has an
> extension called LEVEL2 which tests for a Level 2 filing system. The
> assembler source djtoolkit_asm is included with the toolkit - just search
> for 'level2' in that source.
>
> http://www.dilwyn.me.uk/tk/djtk.zip
>
Hmm, I should have explained a bit more rather than leaving you to do it.

Just call trap #3 D0=$4F IOF.XINF after reserving a 64 byte block (call
with d1=0, d2.b=0, d3.w=timeout, a0=channel ID, a1=pointer to the 64 byte
buffer.). If no info block is returned (check d0 on return), there is no
level 2.


I'm aware of that, but just want to avoid having to load SB extensions. Oh
well, I'm already CALLing SD.CHENQ code from SB so it shouldn't be much
hassle to implement.
___
QL-Users Mailing List


Re: [Ql-Users] PRINT_USING bug

2017-02-12 Thread Dilwyn Jones

I discovered a minor bug in SMSQ/E V 3.28's SBASIC today: In
PRINT_USING the @ cancel character doesnt work as advertised. I know
the danger of reporting something trivial like this is that someone
will say "Ok, then fix it!" ;) It may (or may not) be trivial to fix,
I havent got round to checking, its just that the distraction would be
rather inconvenient right now.. Also, the bug may be in the manual,
and somebody may already have the answer to that?

Try:

PRINT_USING '#  @-  #', 1, 2

It SHOULD output

1 -  2

Instead it outputs

1 @2



If I am reading my own notes correctly in the SBASIC / SuperBASIC
Reference Manual you are using the @ symbol instead of the (c)
symbol

http://superbasic-manual.readthedocs.io/en/latest/KeywordsP.clean.html#print-using


Ah, thanks, Rich. The bug was in the QPC2 V1.02 manual  There are a 
few more there which I may send to the Author once I get round to it.
Interestingly, the Miracle Systems manuals for Toolkit 2 also state to use 
the @ AT symbol (I'm looking at Gold Card manual).


Dilwyn 


___
QL-Users Mailing List


Re: [Ql-Users] PRINT_USING bug

2017-02-12 Thread pjwitte

On 12/02/2017 17:43, RWAP Software wrote:

On 2017-02-12 16:38, pjwitte wrote:

I discovered a minor bug in SMSQ/E V 3.28's SBASIC today: In
PRINT_USING the @ cancel character doesnt work as advertised. I know
the danger of reporting something trivial like this is that someone
will say "Ok, then fix it!" ;) It may (or may not) be trivial to fix,
I havent got round to checking, its just that the distraction would be
rather inconvenient right now.. Also, the bug may be in the manual,
and somebody may already have the answer to that?

Try:

PRINT_USING '#  @-  #', 1, 2

It SHOULD output

1 -  2

Instead it outputs

1 @2



If I am reading my own notes correctly in the SBASIC / SuperBASIC
Reference Manual you are using the @ symbol instead of the (c)
symbol

http://superbasic-manual.readthedocs.io/en/latest/KeywordsP.clean.html#print-using


Ah, thanks, Rich. The bug was in the QPC2 V1.02 manual  There 
are a few more there which I may send to the Author once I get round 
to it.


Per

___
QL-Users Mailing List


Re: [Ql-Users] SBASIC 'ls' procedure

2017-02-12 Thread Dilwyn Jones
- NOTE: On non-V2 drivers which don't support subdirectories, ls will 
fail

because the FNAME$ function stops with 'bad parameter' on directory
channels. This can be avoided by adjusting line 1710 in the code (as
indicated in the REMarks). I'll probably have to design another machine
code call to find out whether a device is V2 or not :(
To save you reinventing the wheel Jan, Norman Dunbar's DJToolkit has an 
extension called LEVEL2 which tests for a Level 2 filing system. The 
assembler source djtoolkit_asm is included with the toolkit - just search 
for 'level2' in that source.


http://www.dilwyn.me.uk/tk/djtk.zip

Hmm, I should have explained a bit more rather than leaving you to do it.

Just call trap #3 D0=$4F IOF.XINF after reserving a 64 byte block (call with 
d1=0, d2.b=0, d3.w=timeout, a0=channel ID, a1=pointer to the 64 byte 
buffer.). If no info block is returned (check d0 on return), there is no 
level 2.


Dilwyn


___
QL-Users Mailing List


Re: [Ql-Users] SBASIC 'ls' procedure

2017-02-12 Thread RWAP Software

On 2017-02-12 16:43, Jan Bredenbeek wrote:
On 12 February 2017 at 15:29, RWAP Software  
wrote:



Hi Jan,

That is great - it is a nice function which can be useful.

Could I ask you to consider moving (or Forking?) the repository to the 
new

SInclair QL Github, as this is intended to keep all of the QL stuff
together -



Done that - the directory structure is a bit strange now but I'll 
correct

that asap.


Thanks Jan - I have also found a few more Github repositories and forked 
them across :)


Rich Mellor RWAP Software www.rwapsoftware.co.uk www.sellmyretro.com


___
QL-Users Mailing List


Re: [Ql-Users] SBASIC 'ls' procedure

2017-02-12 Thread Jan Bredenbeek
On 12 February 2017 at 15:29, RWAP Software  wrote:

> Hi Jan,
>
> That is great - it is a nice function which can be useful.
>
> Could I ask you to consider moving (or Forking?) the repository to the new
> SInclair QL Github, as this is intended to keep all of the QL stuff
> together -
>

Done that - the directory structure is a bit strange now but I'll correct
that asap.

-- 
*Jan Bredenbeek* | Hilversum, NL | j...@bredenbeek.net
___
QL-Users Mailing List


Re: [Ql-Users] PRINT_USING bug

2017-02-12 Thread RWAP Software

On 2017-02-12 16:38, pjwitte wrote:

I discovered a minor bug in SMSQ/E V 3.28's SBASIC today: In
PRINT_USING the @ cancel character doesnt work as advertised. I know
the danger of reporting something trivial like this is that someone
will say "Ok, then fix it!" ;) It may (or may not) be trivial to fix,
I havent got round to checking, its just that the distraction would be
rather inconvenient right now.. Also, the bug may be in the manual,
and somebody may already have the answer to that?

Try:

PRINT_USING '#  @-  #', 1, 2

It SHOULD output

1 -  2

Instead it outputs

1 @2



If I am reading my own notes correctly in the SBASIC / SuperBASIC 
Reference Manual you are using the @ symbol instead of the (c) 
symbol


http://superbasic-manual.readthedocs.io/en/latest/KeywordsP.clean.html#print-using

Rich Mellor RWAP Software www.rwapsoftware.co.uk www.sellmyretro.com


___
QL-Users Mailing List


[Ql-Users] PRINT_USING bug

2017-02-12 Thread pjwitte
I discovered a minor bug in SMSQ/E V 3.28's SBASIC today: In 
PRINT_USING the @ cancel character doesnt work as advertised. I know 
the danger of reporting something trivial like this is that someone 
will say "Ok, then fix it!" ;) It may (or may not) be trivial to fix, 
I havent got round to checking, its just that the distraction would be 
rather inconvenient right now.. Also, the bug may be in the manual, 
and somebody may already have the answer to that?


Try:

PRINT_USING '#  @-  #', 1, 2

It SHOULD output

1 -  2

Instead it outputs

1 @2

Per
___
QL-Users Mailing List


Re: [Ql-Users] SBASIC 'ls' procedure

2017-02-12 Thread RWAP Software

Hi Jan,

That is great - it is a nice function which can be useful.

Could I ask you to consider moving (or Forking?) the repository to the 
new SInclair QL Github, as this is intended to keep all of the QL stuff 
together -


https://github.com/SinclairQL

Rich

On 2017-02-12 14:24, Jan Bredenbeek wrote:

I've updated the code with various improvements and fixes:

- Listing now adjusts to window size and can be aborted by pressing 'Q' 
or

ESC, even when recursing directories;
- Redirection by DEV device is now handled correctly (so long as you 
don't

rename the DEV device itself ;))
- SMSQ is no longer required; it will now also work on native QL with 
TK2

and Minerva fitted.
- NOTE: On non-V2 drivers which don't support subdirectories, ls will 
fail

because the FNAME$ function stops with 'bad parameter' on directory
channels. This can be avoided by adjusting line 1710 in the code (as
indicated in the REMarks). I'll probably have to design another machine
code call to find out whether a device is V2 or not :(

https://github.com/janbredenbeek/QL/blob/master/SBASIC/ls_bas

Jan.

On 3 February 2017 at 11:31, Jan Bredenbeek  wrote:


Hi Wolfgang,

On 3 February 2017 at 05:01, Wolf  wrote:

Are you aware of the SUB device by Phil Borman? It does the same 
thing,

and there is no copright problem since it's on Dilwyn's page (
http://www.dilwyn.me.uk/tk/index.html)



Thanks, I can vaguely remember it (it might as well be in my BBS 
archive).
Pity it has no source code but indeed a nice thing to learn using 
DISA. As

for the copyright issue, I only do it out of curiosity but it might be
useful inspiration to improve the DEV device ;).

regards,

--
*Jan Bredenbeek* | Hilversum, NL | j...@bredenbeek.net


Rich Mellor RWAP Software www.rwapsoftware.co.uk www.sellmyretro.com


___
QL-Users Mailing List


Re: [Ql-Users] SBASIC 'ls' procedure

2017-02-12 Thread Jan Bredenbeek
I've updated the code with various improvements and fixes:

- Listing now adjusts to window size and can be aborted by pressing 'Q' or
ESC, even when recursing directories;
- Redirection by DEV device is now handled correctly (so long as you don't
rename the DEV device itself ;))
- SMSQ is no longer required; it will now also work on native QL with TK2
and Minerva fitted.
- NOTE: On non-V2 drivers which don't support subdirectories, ls will fail
because the FNAME$ function stops with 'bad parameter' on directory
channels. This can be avoided by adjusting line 1710 in the code (as
indicated in the REMarks). I'll probably have to design another machine
code call to find out whether a device is V2 or not :(

https://github.com/janbredenbeek/QL/blob/master/SBASIC/ls_bas

Jan.

On 3 February 2017 at 11:31, Jan Bredenbeek  wrote:

> Hi Wolfgang,
>
> On 3 February 2017 at 05:01, Wolf  wrote:
>
> Are you aware of the SUB device by Phil Borman? It does the same thing,
>> and there is no copright problem since it's on Dilwyn's page (
>> http://www.dilwyn.me.uk/tk/index.html)
>>
>
> Thanks, I can vaguely remember it (it might as well be in my BBS archive).
> Pity it has no source code but indeed a nice thing to learn using DISA. As
> for the copyright issue, I only do it out of curiosity but it might be
> useful inspiration to improve the DEV device ;).
>
> regards,
>
> --
> *Jan Bredenbeek* | Hilversum, NL | j...@bredenbeek.net
>



-- 
*Jan Bredenbeek* | Hilversum, NL | j...@bredenbeek.net
___
QL-Users Mailing List


Re: [Ql-Users] bug in smsqmulator?

2017-02-12 Thread Wolf

Hi,

ermm, I somehow forgot to link in the FLP driver into SMSQ/E.

Until I have time to replace this on my normal SMSQmulator website, you 
can find the new SMSQE.zip  file here:


www.wlenerz.com/148temppjw25KL/SMSQE.zip

(use copy & paste)

Replace the existing file with the one in the zip file and you shoud be 
good.


I'll do a silent update of this on the normal SMSQmulator site in the 
next few days.


Have fun

Wolfgang





On 11/02/2017 11:24, David Gilham wrote:

setup smsqmulator version 2.22 SMSQE 3.29
I am using the java 7 version of smsqmulator on my linux thinkpad box
i have a usb floppy drive.
The problem is this
I was going through some old ql formatted floppies
and wanted to check their contents
making a disk image of the floppy disc was easy
now i fired up smsqmulator configured it to read the disk image as flp1_
and ensured fthat the floppy disk device was apparantly linked
th problem is that the device driver is not linked under smsqmulator
however much i adjust the config file. I may have been doing something
stupid
or maybe I have software or hardware bugs in my linux system.


___
QL-Users Mailing List


Re: [Ql-Users] bug in smsqmulator?

2017-02-12 Thread Wolf

Thanks,

I'll check that.

Wolfgang



On 11/02/2017 11:24, David Gilham wrote:

setup smsqmulator version 2.22 SMSQE 3.29
I am using the java 7 version of smsqmulator on my linux thinkpad box
i have a usb floppy drive.
The problem is this
I was going through some old ql formatted floppies
and wanted to check their contents
making a disk image of the floppy disc was easy
now i fired up smsqmulator configured it to read the disk image as flp1_
and ensured fthat the floppy disk device was apparantly linked
th problem is that the device driver is not linked under smsqmulator
however much i adjust the config file. I may have been doing something
stupid
or maybe I have software or hardware bugs in my linux system.


___
QL-Users Mailing List