Programs from QL advanced User Guide

Anything QL Software or Programming Related.
retro_collector
Brittle Membrane
Posts: 100
Joined: Sun Jul 21, 2019 2:26 pm
Location: Chicago, IL USA

Re: Programs from QL advanced User Guide

Postby retro_collector » Thu Sep 12, 2019 1:22 pm

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!


retro_collector
Brittle Membrane
Posts: 100
Joined: Sun Jul 21, 2019 2:26 pm
Location: Chicago, IL USA

Re: Programs from QL advanced User Guide

Postby retro_collector » Thu Sep 12, 2019 7:05 pm

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


RWAP
RWAP Master
Posts: 2624
Joined: Sun Nov 28, 2010 4:51 pm
Location: Stone, United Kingdom
Contact:

Re: Programs from QL advanced User Guide

Postby RWAP » Thu Sep 12, 2019 8:21 pm

780 is trying to call the trap - so it depends what values you are entering


retro_collector
Brittle Membrane
Posts: 100
Joined: Sun Jul 21, 2019 2:26 pm
Location: Chicago, IL USA

Re: Programs from QL advanced User Guide

Postby retro_collector » Thu Sep 12, 2019 8:54 pm

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


Andrew
Trump Card
Posts: 210
Joined: Tue Jul 17, 2018 9:10 pm

Re: Programs from QL advanced User Guide

Postby Andrew » Thu Sep 12, 2019 9:17 pm

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
Attachments
exper_bas.zip
(1.59 KiB) Downloaded 5 times


retro_collector
Brittle Membrane
Posts: 100
Joined: Sun Jul 21, 2019 2:26 pm
Location: Chicago, IL USA

Re: Programs from QL advanced User Guide

Postby retro_collector » Thu Sep 12, 2019 10:31 pm

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


stephen_usher
Chuggy Microdrive
Posts: 71
Joined: Tue Mar 11, 2014 8:00 pm

Re: Programs from QL advanced User Guide

Postby stephen_usher » Thu Sep 12, 2019 10:49 pm

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.



Who is online

Users browsing this forum: No registered users and 5 guests