Page 2 of 2

Re: Programs from QL advanced User Guide

Posted: Thu Sep 12, 2019 1:22 pm
by retro_collector
Artificer wrote:Hi Bill

Here is one from the book that I have typed in - the assembly listing to show the QL's 2 screens without Minerva, if you are interested.TWOSCRN.zip

Cheers

Artificer

Thanks Artificer!

I will play with it!

Re: Programs from QL advanced User Guide

Posted: Thu Sep 12, 2019 7:05 pm
by retro_collector
Andrew, turning off toolkit II did fix HEX$ issue and that part works.

I still get AT LINE 780 overflow and its with a basic QL configuration

Re: Programs from QL advanced User Guide

Posted: Thu Sep 12, 2019 8:21 pm
by RWAP
780 is trying to call the trap - so it depends what values you are entering

Re: Programs from QL advanced User Guide

Posted: Thu Sep 12, 2019 8:54 pm
by retro_collector
You line 780 call the trap with the values in the address and data registers. I followed the examples in the book and what should work doesn't

Re: Programs from QL advanced User Guide

Posted: Thu Sep 12, 2019 9:17 pm
by Andrew
retro_collector wrote:Andrew, turning off toolkit II did fix HEX$ issue and that part works.

I still get AT LINE 780 overflow and its with a basic QL configuration
Function HEXDEC is not returning proper result - you have an error in line 1070
Change it to : 1070 IF v>47 THEN v=v-48

Corrected program in attachment - now also runs when Toolkit 2 is loaded

Re: Programs from QL advanced User Guide

Posted: Thu Sep 12, 2019 10:31 pm
by retro_collector
Thank you Andrew! I fixed the HEX$ by Changing to HHEX$, I dont know how i missed the IF V>47 line since I looked at that function for hours!

Cheers!

Bill

Re: Programs from QL advanced User Guide

Posted: Thu Sep 12, 2019 10:49 pm
by stephen_usher
retro_collector wrote:Thank you Andrew! I fixed the HEX$ by Changing to HHEX$, I dont know how i missed the IF V>47 line since I looked at that function for hours!

Cheers!

Bill
It was probably BECAUSE you looked at the function for hours and always read what you thought it should be. Been there, done that.