Search found 62 matches

by Chain-Q
Mon Dec 26, 2022 3:25 pm
Forum: Hardware
Topic: Microdrive/vDrive woes
Replies: 3
Views: 597

Microdrive/vDrive woes

Hi guys, Some of you might remember me, I was the guy who about 2 years ago, at a QLvember decided to introduce a Sinclair QL target for free Free Pascal Compiler. Back then I had no QL hardware, nor any experience with it, but sounded fun. I did all the work in emulators, mainly QemuLator on my Mac...
by Chain-Q
Wed Jun 30, 2021 9:33 pm
Forum: Hardware
Topic: CPU 68080
Replies: 53
Views: 13143

Re: CPU 68080

Which (the 68030 - addition by me) also seems to be the actual most common CPU expansion for all the Amiga models! Very little apart from Demos actually uses/needs 68060+ Well, some Amiga models came with a 68030 on-board already (the A3000, some versions of the A4000), and they still have a CPU ex...
by Chain-Q
Sat May 22, 2021 10:57 am
Forum: Software & Programming
Topic: QL / PASCAL
Replies: 303
Views: 76339

Re: QL / PASCAL

So Norman, I finally merged most of your changes in FPC.patch8a.zip. I removed the old sysvars example, as it's quite messy, and the two current examples we have are enough. Hmm. Usually I code in C/C++ and not Pascal. However, when I'm coding on the PC to read QL structures, I always have to pack t...
by Chain-Q
Sat May 22, 2021 6:59 am
Forum: Software & Programming
Topic: QL / PASCAL
Replies: 303
Views: 76339

Re: QL / PASCAL

As this is all not ideal Wolfgang and I designed and implemented the mentioned Home thing to finally remedy the situation, it automatically tracks the directory an EXE was started from and also maintains a "current directory" per process. "Things" are by definition dynamically c...
by Chain-Q
Thu May 20, 2021 7:17 am
Forum: Software & Programming
Topic: QL / PASCAL
Replies: 303
Views: 76339

Re: QL / PASCAL

It's actually one of the traits of QDOS that this knowledge actually shouldn't be needed at all - files and devices are handled transparently and ar thus fully redirectable. Yes, and that's actually a quite cool concept, I agree. But in practical terms, it's sometimes good to know the kind of devic...
by Chain-Q
Wed May 19, 2021 10:37 am
Forum: Software & Programming
Topic: QL / PASCAL
Replies: 303
Views: 76339

Re: QL / PASCAL

And a question: I don't suppose there's any way to figure out in a Job, where it was loaded from? I'm thinking about something like, you do EXEC_W "win3_some.exe" , but "some.exe" has several files on "win3_" which it would like to access. Is there a way for some.exe to...
by Chain-Q
Wed May 19, 2021 8:58 am
Forum: Software & Programming
Topic: QL / PASCAL
Replies: 303
Views: 76339

Re: QL / PASCAL

OK, I think I committed a hacky fix/workaround for this in SVN r49381. So flush() between write() and read() on the console is no longer necessary. For a proper fix, I'd need to know if a file handle/channel ID I have is a "device", i.e. "con_". But I don't suppose I can query th...
by Chain-Q
Tue May 18, 2021 2:44 pm
Forum: Software & Programming
Topic: QL / PASCAL
Replies: 303
Views: 76339

Re: QL / PASCAL

Yes, flushing works, but I consider it a workaround, read/write is platform agnostic API, so it shouldn't really behave differently and need code changes on a specific platform. I'll look into this where this problem comes from.
by Chain-Q
Mon May 17, 2021 10:28 am
Forum: Software & Programming
Topic: QL / PASCAL
Replies: 303
Views: 76339

Re: QL / PASCAL

Another patch to the Free Pascal stuff. In this one, I have modified the qdos unit to: Include a file qdos_sysvars.inc which has a new record type, SystemVariables , and a pointer to it, PSystemVariables . Remove the existing offsets from the base of the system variables, superceeded by the above. ...
by Chain-Q
Mon May 17, 2021 9:07 am
Forum: Software & Programming
Topic: QL / PASCAL
Replies: 303
Views: 76339

Re: QL / PASCAL

So, because earlier there was some discussion on how QLGCC/C68 addresses the console opening, and makes it possible to override via some struct which can be injected using weak linking, I enabled weak linking for the QL, and added two "hooks", where the user code can open a console the way...