[Ql-Users] 32 bit

2012-02-13 Thread Malcolm Lear

Hi,

Does anyone know if or how a 32 bit number can be printed without the 
scientific exponent jumping in?


Cheers
Malcolm

___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] 32 bit

2012-02-13 Thread Lee Privett

I asked a similar question on the QL Forum here 
http://www.qlforum.co.uk/viewtopic.php?f=3t=285 

Dilwyn responded first with 

There was a Maths package by Helumt Aigner but not if it can do what you want 
- have a look at http://www.dilwyn.me.uk/tk/index.html.
Also, have a look in Quanta Library - disk MA01 - at CalQLator which claims to 
do up to 120 decimal places. Author was E G Whitbread in 1985. I think program 
is in SuperBASIC so you might be able to look at the code to see if it does 
what you want.
I seem to remember a QL program to calculate PI to some alarming number of 
decimal places such as 1900, but can't remember where I saw it - I just did a 
quick search on my website and Quanta library but can't seem to find it. 
Possibly, it might have been in Phil Jordan and Steve Johnson's PD libraries 
(disk 17 perhaps?)


On 13 Feb 2012, at 10:44, Malcolm Lear wrote:

 Hi,
 
 Does anyone know if or how a 32 bit number can be printed without the 
 scientific exponent jumping in?
 
 Cheers
 Malcolm
 
 ___
 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] 32 bit

2012-02-13 Thread Malcolm Lear
Thanks Lee, unfortunately the maths package doesn't seem to solve the 
problem and I don't have access to the the Quanta library. I've just 
looked through my QL Today discs, but can't find anything. Maybe one of 
the tool kits.



On 13/02/2012 10:54, Lee Privett wrote:

I asked a similar question on the QL Forum here 
http://www.qlforum.co.uk/viewtopic.php?f=3t=285

Dilwyn responded first with

There was a Maths package by Helumt Aigner but not if it can do what you want 
- have a look at http://www.dilwyn.me.uk/tk/index.html.
Also, have a look in Quanta Library - disk MA01 - at CalQLator which claims to 
do up to 120 decimal places. Author was E G Whitbread in 1985. I think program 
is in SuperBASIC so you might be able to look at the code to see if it does 
what you want.
I seem to remember a QL program to calculate PI to some alarming number of decimal 
places such as 1900, but can't remember where I saw it - I just did a quick search 
on my website and Quanta library but can't seem to find it. Possibly, it might have 
been in Phil Jordan and Steve Johnson's PD libraries (disk 17 perhaps?)


On 13 Feb 2012, at 10:44, Malcolm Lear wrote:


Hi,

Does anyone know if or how a 32 bit number can be printed without the 
scientific exponent jumping in?

Cheers
Malcolm

___
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


___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] Qimi schematics + board

2012-02-13 Thread Dilwyn Jones

Qimi schematics seem to be available online at
http://dilwynjones.topcities.com/qldocs/qimi.html . Is the board layout
also available somewhere?

Best regards,
Petri
That site is obsolete. The same info is on 
http://www.dilwyn.me.uk/docs/manuals/index.html (scroll down to QIMI section 
where you'll find Dave Westbury's programming info for it and replacement 
manuals).


I'll add a non-QL graphic as I get time.

Don't know of a board layout design but I'll happily add that if anyone has 
the info.


Dilwyn Jones 


___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] 32 bit

2012-02-13 Thread Tobias Fröschle

Am 13.02.2012 12:29, schrieb Malcolm Lear:
Thanks Lee, unfortunately the maths package doesn't seem to solve the 
problem and I don't have access to the the Quanta library. I've just 
looked through my QL Today discs, but can't find anything. Maybe one 
of the tool kits.



On 13/02/2012 10:54, Lee Privett wrote:
I asked a similar question on the QL Forum here 
http://www.qlforum.co.uk/viewtopic.php?f=3t=285


Dilwyn responded first with

There was a Maths package by Helumt Aigner but not if it can do what 
you want - have a look at http://www.dilwyn.me.uk/tk/index.html.
Also, have a look in Quanta Library - disk MA01 - at CalQLator which 
claims to do up to 120 decimal places. Author was E G Whitbread in 
1985. I think program is in SuperBASIC so you might be able to look 
at the code to see if it does what you want.
I seem to remember a QL program to calculate PI to some alarming 
number of decimal places such as 1900, but can't remember where I saw 
it - I just did a quick search on my website and Quanta library but 
can't seem to find it. Possibly, it might have been in Phil Jordan 
and Steve Johnson's PD libraries (disk 17 perhaps?)



On 13 Feb 2012, at 10:44, Malcolm Lear wrote:


Hi,

Does anyone know if or how a 32 bit number can be printed without 
the scientific exponent jumping in?


Cheers
Malcolm

___
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


___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Malcolm,
you might want to have a look at PRINT_USING which is part of Toolkit 
II. You can use this to force printing in specific formats. It has, 
however, a bit of odd behavior when the number doesn't fit the format 
(it then just prints **.**
You can do the same thing using a PROCEDURE like the following (quick 
and dirty) piece of code:


100 DEFine FuNction noexp$(value, digits)
110   LOCal digit, i, act$
115   DIM result$(20)
120   digit = 10^digits
130   i = 20
140   result$ = FILL$( , 20)
160   REPeat digiloop
170 act$ = INT((value * digit / 10 - INT (value * digit / 10)) * 10)
190 result$(i) = act$(1)
200 digit = digit / 10
220 IF digit == 1 THEN
230   i = i - 1
240   result$(i) = .
245   i = i - 1
250 ELSE
260   i = i - 1
265 END IF
270 IF i = 0 THEN
280   EXIT digiloop
290 END IF
300   END REPeat digiloop
310   REPeat zeroloop
320 IF result$(1) = 0 AND result$(2) . THEN
330   result$ = result$(2 TO)
335 ELSE
337   EXIT zeroloop
338 END IF
340   END REPeat
350   RETurn result$
360 END DEFine

You give it the value and the amount of decimal places after the comma.
(Just realized that it doesn't work for negative values).

Cheers,
Tobias
___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] 32 bit

2012-02-13 Thread Malcolm Lear

Wow, thanks Tobias, I'll check these options out and report back.

Malcolm


On 13/02/2012 13:59, Tobias Fröschle wrote:

Am 13.02.2012 12:29, schrieb Malcolm Lear:
Thanks Lee, unfortunately the maths package doesn't seem to solve the 
problem and I don't have access to the the Quanta library. I've just 
looked through my QL Today discs, but can't find anything. Maybe one 
of the tool kits.



On 13/02/2012 10:54, Lee Privett wrote:
I asked a similar question on the QL Forum here 
http://www.qlforum.co.uk/viewtopic.php?f=3t=285


Dilwyn responded first with

There was a Maths package by Helumt Aigner but not if it can do 
what you want - have a look at http://www.dilwyn.me.uk/tk/index.html.
Also, have a look in Quanta Library - disk MA01 - at CalQLator which 
claims to do up to 120 decimal places. Author was E G Whitbread in 
1985. I think program is in SuperBASIC so you might be able to look 
at the code to see if it does what you want.
I seem to remember a QL program to calculate PI to some alarming 
number of decimal places such as 1900, but can't remember where I 
saw it - I just did a quick search on my website and Quanta library 
but can't seem to find it. Possibly, it might have been in Phil 
Jordan and Steve Johnson's PD libraries (disk 17 perhaps?)



On 13 Feb 2012, at 10:44, Malcolm Lear wrote:


Hi,

Does anyone know if or how a 32 bit number can be printed without 
the scientific exponent jumping in?


Cheers
Malcolm

___
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


___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Malcolm,
you might want to have a look at PRINT_USING which is part of Toolkit 
II. You can use this to force printing in specific formats. It has, 
however, a bit of odd behavior when the number doesn't fit the format 
(it then just prints **.**
You can do the same thing using a PROCEDURE like the following (quick 
and dirty) piece of code:


100 DEFine FuNction noexp$(value, digits)
110   LOCal digit, i, act$
115   DIM result$(20)
120   digit = 10^digits
130   i = 20
140   result$ = FILL$( , 20)
160   REPeat digiloop
170 act$ = INT((value * digit / 10 - INT (value * digit / 10)) * 10)
190 result$(i) = act$(1)
200 digit = digit / 10
220 IF digit == 1 THEN
230   i = i - 1
240   result$(i) = .
245   i = i - 1
250 ELSE
260   i = i - 1
265 END IF
270 IF i = 0 THEN
280   EXIT digiloop
290 END IF
300   END REPeat digiloop
310   REPeat zeroloop
320 IF result$(1) = 0 AND result$(2) . THEN
330   result$ = result$(2 TO)
335 ELSE
337   EXIT zeroloop
338 END IF
340   END REPeat
350   RETurn result$
360 END DEFine

You give it the value and the amount of decimal places after the comma.
(Just realized that it doesn't work for negative values).

Cheers,
Tobias
___
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] 32 bit

2012-02-13 Thread George Gwilt

On 13 Feb 2012, at 10:44, Malcolm Lear wrote:

 Does anyone know if or how a 32 bit number can be printed without the 
 scientific exponent jumping in?

Use FDEC$.

FDEC$($7FFF,12,0) gives 2147483647

George
___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] 32 bit

2012-02-13 Thread Malcolm Lear

That's just what I need!, thanks George and all who helped.

Malcolm


On 13/02/2012 15:32, George Gwilt wrote:

On 13 Feb 2012, at 10:44, Malcolm Lear wrote:


Does anyone know if or how a 32 bit number can be printed without the 
scientific exponent jumping in?

Use FDEC$.

FDEC$($7FFF,12,0) gives 2147483647

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


[Ql-Users] Large turbo tasks

2012-02-13 Thread Michael Bulford
I am developing a program in SuperBASIC, and compiling with Turbo.  The size of 
the compiled code is around 133k at the moment but I still have quite a lot to 
add.  The problem is I am getting reports of Code too large to compile, 
etc.   What I have decided to do is to remove some parts of my code, and 
down-grade the program slightly.  I can also move some parts to another 
separate task, but overall this is some problem.
 
What I was wondering is if perhaps new versions of the parser and codegen tasks 
could be produced to increase the limits to allow larger sizes to be compiled.  
It is so easy nowadays to write large programs without having to worry about 
program size or the amount of dataspace used.
 
Michael Bulford 
___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] Large turbo tasks

2012-02-13 Thread Dilwyn Jones
I'm not sure if this has changed in recent versions of Turbo, but there used 
to be a setting which allowed you to produce smaller programs by limiting 
the compiled size to 64K (word length addressing etc I suppose). There is a 
setting on the control panel (the green screen started by the CHARGE 
command) which lets you select 64K or 64K in one of the boxes. There's 
also a equivalent compiler directive which I can't remember from memory (one 
of the TURBO_nnn commands, possibly TURBO_MODEL - see Turbo Toolkit manual) 
which lets you tell the compiler which settings to use to control over the 
reduced file sizes - remember Turbo was originally conceived when we didn't 
all have as much memory on our systems as today!


Dilwyn Jones

-Original Message- 
From: Michael Bulford

Sent: Monday, February 13, 2012 9:28 PM
To: ql-us...@q-v-d.com
Subject: [Ql-Users] Large turbo tasks

I am developing a program in SuperBASIC, and compiling with Turbo.  The size 
of the compiled code is around 133k at the moment but I still have quite a 
lot to add.  The problem is I am getting reports of Code too large to 
compile, etc.   What I have decided to do is to remove some parts of my 
code, and down-grade the program slightly.  I can also move some parts to 
another separate task, but overall this is some problem.


What I was wondering is if perhaps new versions of the parser and codegen 
tasks could be produced to increase the limits to allow larger sizes to be 
compiled.  It is so easy nowadays to write large programs without having to 
worry about program size or the amount of dataspace used.


Michael Bulford
___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.1913 / Virus Database: 2112/4807 - Release Date: 02/13/12

___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] Large turbo tasks

2012-02-13 Thread Tobias Fröschle

Am 13.02.2012 22:45, schrieb Dilwyn Jones:
I'm not sure if this has changed in recent versions of Turbo, but 
there used to be a setting which allowed you to produce smaller 
programs by limiting the compiled size to 64K (word length addressing 
etc I suppose). There is a setting on the control panel (the green 
screen started by the CHARGE command) which lets you select 64K or 
64K in one of the boxes. There's also a equivalent compiler directive 
which I can't remember from memory (one of the TURBO_nnn commands, 
possibly TURBO_MODEL - see Turbo Toolkit manual) which lets you tell 
the compiler which settings to use to control over the reduced file 
sizes - remember Turbo was originally conceived when we didn't all 
have as much memory on our systems as today!


Dilwyn Jones

-Original Message- From: Michael Bulford
Sent: Monday, February 13, 2012 9:28 PM
To: ql-us...@q-v-d.com
Subject: [Ql-Users] Large turbo tasks

I am developing a program in SuperBASIC, and compiling with Turbo.  
The size of the compiled code is around 133k at the moment but I still 
have quite a lot to add.  The problem is I am getting reports of Code 
too large to compile, etc.   What I have decided to do is to remove 
some parts of my code, and down-grade the program slightly.  I can 
also move some parts to another separate task, but overall this is 
some problem.


What I was wondering is if perhaps new versions of the parser and 
codegen tasks could be produced to increase the limits to allow larger 
sizes to be compiled.  It is so easy nowadays to write large programs 
without having to worry about program size or the amount of dataspace 
used.


Michael Bulford
___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.1913 / Virus Database: 2112/4807 - Release Date: 02/13/12

___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Michael,
If you're mentioning 133k compiled, that's definitely large.
The largest SB program I know is Editor, with about 100k code size.
I guess you should also run out of line numbers shortly.
Have a look at LINK_LOAD et al - This allows you to off-load parts of 
your code into external libraries.


Cheers,
Tobias

___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] Is there any interest?

2012-02-13 Thread Rich Mellor

On 13/02/2012 02:23, paul wrote:
Secreted away in my trove of Sinclair materials is a box of goodies 
left over from the days of SyncWare News.


SyncWare News was a technical and software featuring USA publication 
of about 6 years, 1983-1989, totaling somewhere around 42 issues 
before it retired.


Software, articles, reviews, contest submissions, and various bits and 
pieces of what was once interesting stuff, all ZX81, TS1000, TS2068, 
and QL related.


Would anyone be interested enough for it to be worthwhile cattylogging 
some of it and listing it for sale here?


I believe that most of the box's contents are the original submissions 
for publication, so what would end up available would be the original 
media, Docs, proposed article writeup and what ever else is located 
and attached with the material.


I will be digging out QL material for sure, probably original boxed 
commercial programs as well, maybe even a few pieces of hardware.



Paul - this sort of stuff is always of interest particularly to me, as 
you know !!


--
Rich Mellor
RWAP Services
Specialist Enuuk Auction Programming Services

www.rwapservices.co.uk


___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm