Search found 240 matches

by EmmBee
Thu Mar 08, 2012 8:15 pm
Forum: Software & Programming
Topic: Q Liberator FOR type error
Replies: 12
Views: 8561

Re: Q Liberator FOR type error

Many thanks for checking. I have made an in-depth study of the Qliberator Manual. It says ... The control variable of a FOR..END FOR loop cannot be a formal procedure parameter or an error will occur. Apparently the idea dates back to 1984 in the days of the AH and JM ROMs. In those days a SELect va...
by EmmBee
Wed Mar 07, 2012 1:46 pm
Forum: Software & Programming
Topic: Q Liberator FOR type error
Replies: 12
Views: 8561

Re: Q Liberator FOR type error

What I meant was that if you only call the First procedure directly from within the program, rather than calling the Second procedure (which in turn calls the First procedure). I have written this particular test code to illustrate what can happen. In a large program with many procedures and functi...
by EmmBee
Wed Mar 07, 2012 12:47 pm
Forum: Software & Programming
Topic: Q Liberator FOR type error
Replies: 12
Views: 8561

Re: Q Liberator FOR type error

Have you tried unrolling the single-line FOR statement onto a multiple line statement? That works for me on SMSQ/E. Using the original code that you posted results in the very same error that you have mentioned. I have tried this - unrolling into the full FOR - END FOR construct, but can only try t...
by EmmBee
Tue Mar 06, 2012 2:05 pm
Forum: Software & Programming
Topic: Q Liberator FOR type error
Replies: 12
Views: 8561

Re: Q Liberator FOR type error

After the LOCal statement - mind you, the program does run. Do you mean that the compiled code actually works and without any error message in SMSQ/e and QPC2? The error happens when I execute the Q-lib'd obj file in Q-emuLator, but I have been unable to test this in SMSQ/e because I do not have th...
by EmmBee
Mon Mar 05, 2012 3:22 pm
Forum: Software & Programming
Topic: Q Liberator FOR type error
Replies: 12
Views: 8561

Q Liberator FOR type error

Can anyone please confirm that there is an error in the Q Liberator compiler? When I run the following program, it prints out the numbers one to ten once, and then stops with a "For type error" at line 160 Q LIB Error 38. As I see it, the "x" is protected by being local, and so a...
by EmmBee
Wed Feb 22, 2012 4:20 pm
Forum: Software & Programming
Topic: Printing SuperBASIC programs
Replies: 13
Views: 9059

Re: Printing SuperBASIC programs

I was concerned more about how a SuperBASIC program could be printed out, especially one that contains long lines. Using ED, the lines after the first one are indented four spaces in. On the QL screen there are a maximum of 85 characters to the line. I am using Q-emuLator, which has a virtual printe...
by EmmBee
Tue Feb 21, 2012 10:36 am
Forum: Software & Programming
Topic: Printing SuperBASIC programs
Replies: 13
Views: 9059

Printing SuperBASIC programs

Does anyone know of any software capable of printing out a SuperBASIC program? I use ED from toolkit 2 to construct my programs, but they don't print out as displayed on the QL screen. Using windows software I always have to spend time formatting the text, and even then make mistakes. Michael EmmBee
by EmmBee
Sat Jan 28, 2012 3:16 pm
Forum: Help for New Users
Topic: TRACE and Minerva
Replies: 3
Views: 4329

Re: TRACE and Minerva

Thanks. I've downloaded the file. The trace works well. Interesting - all the files on the zipfile begin with "ram3_"! I've been trying to use UNZIP, and unzipping to somewhere else, then discovering the files are not there! I take it that "ram3_" takes precedence over datad$. I'...
by EmmBee
Sat Jan 28, 2012 1:04 pm
Forum: Help for New Users
Topic: TRACE and Minerva
Replies: 3
Views: 4329

TRACE and Minerva

I am using Q-emuLator and am looking for a TRACE utility to work with Minerva. I have got SuperTrace, written in 1987 by David Henderson, but cannot get this to work at all with Minerva. This will work with the JS ROM, except that the commands of ctrl_t and ctrl_u don't work. Those commands turn TRA...
by EmmBee
Mon Jan 16, 2012 4:52 pm
Forum: Software & Programming
Topic: How to know the device of the last file loaded?
Replies: 9
Views: 8895

Re: How to know the device of the last file loaded?

According to the documentation, HOME_DIR under QDOS will not work for the LOAD and EX type commands. I think the information of the last drive used somehow must be kept in the system, if only in some temporary store (at least, the last command interpreted). You could try fetching the last line typed...