[Ql-Users] Wasted evening?

2011-03-07 Thread Norman Dunbar
Sigh!

Last night, I was doing some work on the next exciting article in the
Pointer Environment series of Assembly programming for Ql Today.

Basically, in the application window hit routine, I was attempting to
print out all the meaningful data about the registers when the routine
is called.

Try as I might, the keystroke in D2.B would not print, unless a special
case of -1, 0, 1 or 2.

I spent ages looking, tracing with JMON and so on, I could see the
keycode in D2.B but it simply refused to print when copied to D1.B.

I was using IO_SBYTE/IOB_SBYT to print the keycode. There were never any
errors seen after printing the keystroke as the trap always returned
with D0=0 and the Z flag set.

Eventually, I gave up and decided to pen a help me email to the list.
While doing exactly that, I typed in a bit of the code and suddenly
realised that I was a pillock! I was calling  trap #1 rather than trap
#3 - instead of printing a byte to a channel, I was force removing a
(thankfully non-existent) job!

Duh!


Cheers,
Norman.

-- 
Norman Dunbar
Dunbar IT Consultants Ltd

Registered address:
Thorpe House
61 Richardshaw Lane
Pudsey
West Yorkshire
United Kingdom
LS28 7EL

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


Re: [Ql-Users] Wasted evening?

2011-03-07 Thread Rich Mellor

On 07/03/2011 08:35, Norman Dunbar wrote:

Sigh!

Last night, I was doing some work on the next exciting article in the
Pointer Environment series of Assembly programming for Ql Today.

Basically, in the application window hit routine, I was attempting to
print out all the meaningful data about the registers when the routine
is called.

Try as I might, the keystroke in D2.B would not print, unless a special
case of -1, 0, 1 or 2.

I spent ages looking, tracing with JMON and so on, I could see the
keycode in D2.B but it simply refused to print when copied to D1.B.

I was using IO_SBYTE/IOB_SBYT to print the keycode. There were never any
errors seen after printing the keystroke as the trap always returned
with D0=0 and the Z flag set.

Eventually, I gave up and decided to pen a help me email to the list.
While doing exactly that, I typed in a bit of the code and suddenly
realised that I was a pillock! I was calling  trap #1 rather than trap
#3 - instead of printing a byte to a channel, I was force removing a
(thankfully non-existent) job!

Duh!


Cheers,
Norman.


Norman,

It's an easy enough mistake - I am just glad that you were not entering 
the job ID for the editor task - now that would have been a confusing 
bug to track down!!


--
Rich Mellor
RWAP Services

http://www.rwapsoftware.co.uk
http://www.rwapservices.co.uk

-- Try out our new site: http://sellmyretro.com


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


[Ql-Users] Jan Jones Book

2011-03-07 Thread John Taylor
The QL must be very much alive.
The used Jan Jones book sold for £23 on eBay.
Quanta sold them, new, for £8
JJ got £5 and Quanta paid for the reprint out of their £3.

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


Re: [Ql-Users] Jan Jones Book

2011-03-07 Thread Malcolm Cadman
In message 8dcea9cd-97c6-4ccd-a944-8dc829f4b...@btinternet.com, John 
Taylor j_taylo...@btinternet.com writes



The QL must be very much alive.
The used Jan Jones book sold for £23 on eBay.
Quanta sold them, new, for £8
JJ got £5 and Quanta paid for the reprint out of their £3.

John Taylor


Probably becoming a 'rare' book now ... would be worth even more if had 
been printed with dust jacket? . :-)


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


Re: [Ql-Users] Jan Jones Book

2011-03-07 Thread Dave Park
On Mon, Mar 7, 2011 at 2:07 PM, Dilwyn Jones
dil...@evans1511.fsnet.co.ukwrote:

 Malcolm Cadman wrote:

 In message 8dcea9cd-97c6-4ccd-a944-8dc829f4b...@btinternet.com, John
 Taylor j_taylo...@btinternet.com writes

  The QL must be very much alive.
 The used Jan Jones book sold for £23 on eBay.
 Quanta sold them, new, for £8
 JJ got £5 and Quanta paid for the reprint out of their £3.

 John Taylor


 Probably becoming a 'rare' book now ... would be worth even more if
 had been printed with dust jacket? . :-)


 Ironic that when something becomes no longer available, it becomes more
 wanted than ever!

 With the book being available on the Spanish QL Resources site, and with
 Malcolm Lear tidying up the scanned copy, it ought to become available
 eventually in searchable formats.

 An alternative is Rich Mellor's Superbasic Reference Guide, which is
 available as PDFs on a CD from the SellMyRetro site. I have got the paper
 copy, but find it too big and bulky.


I have asked Jan Jones for permission to re-typeset or reprint the book and
she is thinking about it.

Hopefully she will say yes or offer lenient terms...

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