Search found 2187 matches

by tofro
Thu Sep 16, 2021 12:34 pm
Forum: Software & Programming
Topic: Tracking programming - File Management
Replies: 12
Views: 437

Re: Tracking programming - File Management

There's actually no reason why a job shouldn't be able to disable interrupts and do all other sorts of dirty stuff ;) (After all, CALLed programs run in the context of a job as well, it's just always their S*BASIC owner job - typically job 0). There might be some issues when you have an interrupt ha...
by tofro
Thu Sep 16, 2021 7:11 am
Forum: Software & Programming
Topic: Scaling an entire screen
Replies: 10
Views: 436

Re: Scaling an entire screen

Hmm. Your last example compiles nicely on my Turbo 5.02. It complains when I remove the REFERENCE to array (which it shouldn't), but otherwise compiles.
by tofro
Wed Sep 15, 2021 5:27 pm
Forum: Software & Programming
Topic: Scaling an entire screen
Replies: 10
Views: 436

Re: Scaling an entire screen

The main one being untyped variables in PROC and FN actual parameters - supported by both S*BASIC and QLiberator, but not in Turbo - While both S*BASIC and QLIB determine the type of an actual parameter at run-time, Turbo insists in doing that at compile time, so you can write a Function like DEFine...
by tofro
Wed Sep 15, 2021 11:42 am
Forum: Software & Programming
Topic: Scaling an entire screen
Replies: 10
Views: 436

Re: Scaling an entire screen

Without creating a separate library, I'm actually going to give a try to compile the entire BASIC program in order to create a single executable. Which BASIC compiler would make this the most seamless and give me that single executable with no need to LRESPR anything else? Both Turbo and Q-Liberato...
by tofro
Tue Sep 14, 2021 11:47 am
Forum: Software & Programming
Topic: The QL UDG Playground
Replies: 20
Views: 624

Re: The QL UDG Playground

I think in 2021, it is perfectly acceptable to assume TK2 is available to anyone. It allows you to improve and shorten SuperBASIC programs so much that it would be a very unnecessary restriction. When I'm compiling programs for the BBQL, I typically link TK2 into the program (yes, that might waste s...
by tofro
Sun Sep 12, 2021 1:01 am
Forum: Software & Programming
Topic: QD Basic Renumbering
Replies: 2
Views: 671

Re: QD Basic Renumbering

Derek,

QD simply doesn't do that. It does change the line numbers of program lines, but won't touch any references within the program - That also covers GOTO, GOSUB and other statements that use line numbers, like RESTORE.
by tofro
Thu Sep 09, 2021 11:13 am
Forum: Hardware
Topic: Expanding the QL's address space beyond 1M (+primer on building QL compatible machines)
Replies: 29
Views: 1742

Re: Expanding the QL's address space beyond 1M (+primer on building QL compatible machines)

The idea that the designers probably had in mind was to use SER1 to drive the printer and SER2 for modems or other communication. And that wasn't too much of a bad idea when the QL was designed. Other than that, the QL designers' crystal balls weren't too fine-tuned, apparently. Hindsight is always...
by tofro
Tue Aug 31, 2021 9:14 pm
Forum: Software & Programming
Topic: The comp.sys.sinclair Crap Games Competition 2021: 25th edition extravaganza!
Replies: 104
Views: 10405

Re: The comp.sys.sinclair Crap Games Competition 2021: 25th edition extravaganza!

The program would ask you for a grid of letters and, looking into a plain text word dictionary, would find all possible words in the grid and output the result sorted by length. I did that at the time in order to cheat in online Boogle games ! I can pull out the source if you want. "Plain text...
by tofro
Tue Aug 31, 2021 8:22 pm
Forum: Software & Programming
Topic: The comp.sys.sinclair Crap Games Competition 2021: 25th edition extravaganza!
Replies: 104
Views: 10405

Re: The comp.sys.sinclair Crap Games Competition 2021: 25th edition extravaganza!

The following should get someone started: #include <stdio_h> #include <qdos_h> int kbhit(void) { /* Determines if a keyboard key was pressed */ return (io_pend (fgetchid(stdin)) == 0); } char *cgets (char* buf) { /* Reads a string directly from the console */ int buflen; char *buffer; buflen = buf [...
by tofro
Mon Aug 30, 2021 11:17 am
Forum: Software & Programming
Topic: QLiberator v3.42
Replies: 57
Views: 2541

Re: QLiberator v3.42

Well, accepting that strings need to have a "$" sign in SuperBASIC is maybe obvious, but omitting a nice feature of the QL - Untyped procedures and functions. The QLiberator distribution has a nice example for this feature - a sorting function that can sort strings, floating point numbers ...