Search found 62 matches

by Chain-Q
Wed Apr 14, 2021 5:38 am
Forum: Software & Programming
Topic: QL / PASCAL
Replies: 303
Views: 76978

Re: QL / PASCAL

@NormanDunbar Glad that your PICNIC went well. :D And that's a quite nice document you've got there. It really extends on a lot of details for beginners, which I did not want to include into the wiki. But if you find some final location for it somewhere, I'll gladly link it from the FPC Wiki page. I...
by Chain-Q
Mon Apr 12, 2021 3:13 pm
Forum: Software & Programming
Topic: QL / PASCAL
Replies: 303
Views: 76978

Re: QL / PASCAL

@NormanDunbar Rebuilding the crosscompiler is certainly needed, in fact this is exactly the error you should get if you use a too old compiler with the current RTL. __fpc_program_name is the symbol the compiler should generate. Omitting the program keyword doesn't change it, the compiler will still ...
by Chain-Q
Mon Apr 12, 2021 1:47 pm
Forum: Software & Programming
Topic: QL / PASCAL
Replies: 303
Views: 76978

Re: QL / PASCAL

@pjw
Something tells me the bar wasn't set too high, but hey. :D Any victory is a victory! :ugeek: Anyway, as said earlier, now documented.
by Chain-Q
Mon Apr 12, 2021 1:10 pm
Forum: Software & Programming
Topic: QL / PASCAL
Replies: 303
Views: 76978

Re: QL / PASCAL

OK, so based on all the feedback above, I just committed the following features into SVN trunk: - have a 48 byte ($30) buffer for a job name - use FPC_PROG as a default job name, wired into the binary - have pair of QL-specific calls in the system unit: SetQLJobName and GetQLJobName, to allow easy m...
by Chain-Q
Sun Apr 11, 2021 1:45 am
Forum: Software & Programming
Topic: QL / PASCAL
Replies: 303
Views: 76978

Re: QL / PASCAL

Well I believe you, but I was following the docs here, which doesn't list a QDOS naming for this call: http://qdosmsq.dunbar-it.co.uk/doku.php?id=qdosmsq:traps:trap_3:start Sooo... Anything? :) FS_MKDIR maybe? I have another question: how long a job name is allowed to be? For now all generated execu...
by Chain-Q
Sat Apr 10, 2021 6:25 pm
Forum: Software & Programming
Topic: QL / PASCAL
Replies: 303
Views: 76978

Re: QL / PASCAL

@NormanDunbar:
OK, now also the do_rename() and the do_mkdir() patch by you should be included in SVN trunk, although I did a small refactor, and as I previously indicated, I factored out the inline asm snippets into separate asm wrapper functions.
by Chain-Q
Sat Apr 10, 2021 5:05 pm
Forum: Software & Programming
Topic: QL / PASCAL
Replies: 303
Views: 76978

Re: QL / PASCAL

So here's the current state of FPC SVN trunk. It has somewhat working command line arguments handling (read: ParamCount and ParamStr() works now), and file I/O seems to be largely OK, although the Seek() changes need to be tested more thoroughly: https://twitter.com/chainq/status/1380914243416043522...
by Chain-Q
Fri Apr 09, 2021 12:23 pm
Forum: Software & Programming
Topic: QL / PASCAL
Replies: 303
Views: 76978

Re: QL / PASCAL

I did not merge the FS_POSAB and FS_POSRE changes, because the idea is, these are OS API functions, and should return what the OS returns, always. Therefore the ERR_EF issue must be dealt with in the Pascal code which uses these functions. So I made some changes in the Pascal code instead. This is ...
by Chain-Q
Fri Apr 09, 2021 5:53 am
Forum: Software & Programming
Topic: QL / PASCAL
Replies: 303
Views: 76978

Re: QL / PASCAL

@Norman Tonight I made a selective merge of your patches into FPC's trunk. The main changes are on top of what you did: - Code style, here and there - I did not merge the FS_POSAB and FS_POSRE changes, because the idea is, these are OS API functions, and should return what the OS returns, always. Th...
by Chain-Q
Sun Dec 13, 2020 2:37 pm
Forum: Software & Programming
Topic: QL / PASCAL
Replies: 303
Views: 76978

Re: QL / PASCAL

It's unfortunately, still not working for me. I'll see what the debugger says. Sorry, I wasn't too precise. You have to put -Tsinclairql before any line where these config variables/templates related to the target are resolved. So -Tsinclairql has to be before the -Fu lines. The config file is just...