Commit Graph

54 Commits

Author SHA1 Message Date
nickysn
433050a2c4 * set EXEEXT to .wasm for the WASI target in fpcmake
git-svn-id: trunk@49552 -
2021-06-24 00:16:00 +00:00
Károly Balogh
94693e5f70 sinclairql: make sure smsfuncs.inc is in sync with the one in packages
git-svn-id: trunk@49394 -
2021-05-22 09:43:31 +00:00
Károly Balogh
12a0083c59 sinclairql: return true as default for do_isdevice to work around weird console flushing issues.
git-svn-id: trunk@49381 -
2021-05-19 07:45:04 +00:00
Károly Balogh
13f3cd2ae3 sinclairql: for setting the exit message of the default console, use a helper function instead.
git-svn-id: trunk@49365 -
2021-05-14 17:32:40 +00:00
Károly Balogh
6fbf4dfd90 sinclairql: introduce a way to override the system unit's console opening/closing and exit message via weakexternals
git-svn-id: trunk@49364 -
2021-05-14 15:26:31 +00:00
Károly Balogh
53674e387f sinclairql: include qdosh.inc directly. this will allow easier sharing of qdosfuncs.inc with the qlunits package
git-svn-id: trunk@49308 -
2021-05-01 11:48:39 +00:00
Károly Balogh
394fd2037a sinclairql: sysdeps must include qdosh.inc too
git-svn-id: trunk@49307 -
2021-05-01 11:32:13 +00:00
Károly Balogh
02e6341161 sinclairql: implemented a selection of I/O functions, patch by Norman Dunbar
git-svn-id: trunk@49306 -
2021-05-01 09:59:31 +00:00
Károly Balogh
c9b90ccde0 m68k: sinclair ql now requires vlink 0.16h or newer.
git-svn-id: trunk@49296 -
2021-04-29 22:23:58 +00:00
Károly Balogh
b149718566 sinclairql: added an entirely stub (for now) sysutils unit. added a classes unit. enabled building the whole rtl
git-svn-id: trunk@49239 -
2021-04-20 10:02:39 +00:00
Károly Balogh
6dbcd17f54 sinclairql: hopefully fix off-by-one processing in the packed relocs code
git-svn-id: trunk@49232 -
2021-04-19 05:42:18 +00:00
Károly Balogh
0d5260396c sinclairql: added startup code support for the 'packed' relocation table format in vlink. disabled for now.
git-svn-id: trunk@49211 -
2021-04-16 17:03:41 +00:00
Károly Balogh
2f90dbbd44 sinclairql: implemented StackTop, this results in working stacktraces and working stack checking. Implemented a custom 5% stack safety margin and a system specific SysBackTraceStr()
git-svn-id: trunk@49201 -
2021-04-14 04:05:33 +00:00
Károly Balogh
da252e2f4b sinclairql: turn the anyKey string const into a pchar, this reduces the final binary size by 200-odd bytes
git-svn-id: trunk@49196 -
2021-04-13 10:20:29 +00:00
pierre
f90324a02a Add strings unit to buildrtl meta-unit, and update Makefile.fpc accordingly
git-svn-id: trunk@49195 -
2021-04-12 21:34:03 +00:00
Károly Balogh
9e7a8f44aa sinclairql: add right spelling for iof_mkdr, add the QDOS equivalent alias
git-svn-id: trunk@49192 -
2021-04-12 13:23:03 +00:00
Károly Balogh
8128736233 sinclairql: also have a function which returns a pointer directly to the QLstring job name
git-svn-id: trunk@49191 -
2021-04-12 12:21:25 +00:00
Károly Balogh
3280ec3220 sinclairql: have a max. 48 char buffer for job name. set the job name to the program name by default on system unit init
git-svn-id: trunk@49190 -
2021-04-12 11:58:14 +00:00
Károly Balogh
ad05434401 sinclairql: add the used includes to the system unit deps
git-svn-id: trunk@49174 -
2021-04-10 17:23:32 +00:00
Károly Balogh
9432aa4b69 sinclairql: do_mkdir implemented, patch by Norman Dunbar
git-svn-id: trunk@49173 -
2021-04-10 17:20:50 +00:00
Károly Balogh
3d4e677db0 sinclairql: new files to contain SMS only functions, iof_rename implemented, based on a patch by Norman Dunbar
git-svn-id: trunk@49172 -
2021-04-10 17:20:08 +00:00
Károly Balogh
541c65feb7 sinclairql: implemented do_rename(), based on the patch of Norman Dunbar
git-svn-id: trunk@49171 -
2021-04-10 17:04:47 +00:00
Károly Balogh
fc26e2629b sinclairql: various seeking, FS_POSAB/FS_POSRE and ERR_EF related fixes
git-svn-id: trunk@49169 -
2021-04-10 15:15:12 +00:00
Károly Balogh
f3a19aaf59 sinclairql: first version of working argc/argv generation. implemented ParamCount and ParamStr()
git-svn-id: trunk@49168 -
2021-04-10 15:12:45 +00:00
Jonas Maebe
500e29e5e2 * regenerated with FreeBSD/AArch64 support
git-svn-id: trunk@49159 -
2021-04-10 08:19:40 +00:00
Károly Balogh
ca475537e8 sinclairql: instead of tinyheap, made the QL port to use the new OS heap by default, also implemented Randomize, based on patch by Norman Dunbar
git-svn-id: trunk@49150 -
2021-04-09 04:35:54 +00:00
Károly Balogh
f5c22b7a93 sinclairql: various file and directory handling improvements, based on patch by Norman Dunbar
git-svn-id: trunk@49149 -
2021-04-09 04:34:38 +00:00
Károly Balogh
e7681dfe5b sinclairql: implemented io_delet and mt_rclck QDOS functions, patch by Norman Dunbar
git-svn-id: trunk@49148 -
2021-04-09 04:24:06 +00:00
Károly Balogh
d480192477 sinclairql: implemented Error2InOutRes, patch by Norman Dunbar
git-svn-id: trunk@49147 -
2021-04-09 04:22:47 +00:00
Károly Balogh
08023bbad0 sinclairql: fixed parameter trashing in several QDOS function assembler wrappers
git-svn-id: trunk@49146 -
2021-04-09 03:04:24 +00:00
Károly Balogh
80d549a734 sinclairql: further tweaks to the startup code. enable optimizations. mark functions as noreturn to save a few bytes
git-svn-id: trunk@49144 -
2021-04-08 23:51:48 +00:00
Károly Balogh
ab0de8eec0 sinclairql: fix and simplify the startup code changes in r49134. accessing global variables is not possible before relocation
git-svn-id: trunk@49143 -
2021-04-08 23:33:54 +00:00
pierre
44e39f454a Add basic support for setting argc and argv for sinclairql OS
git-svn-id: trunk@49134 -
2021-04-07 15:58:42 +00:00
florian
e4cc8af8fc * Makefiles regenerated
git-svn-id: trunk@49124 -
2021-04-05 15:39:07 +00:00
pierre
a70feeca7e Add sinclairql/Makefile
git-svn-id: trunk@48981 -
2021-03-15 15:39:30 +00:00
nickysn
f9daec43ef * synchronized with trunk
git-svn-id: branches/wasm@47588 -
2020-11-25 21:59:19 +00:00
Károly Balogh
2294472ac7 sinclairql: changed startup code to be able to run directly as job without a BASIC loader. based on a patch by Marcel Kilgus in qlforum.co.uk
git-svn-id: trunk@47570 -
2020-11-25 04:42:44 +00:00
Károly Balogh
3eece73a89 sinclairql: fix exitCode parameter accidentally overwritten in mt_frjob. also save d2 register.
git-svn-id: trunk@47568 -
2020-11-25 04:33:05 +00:00
Károly Balogh
f9d54b7cb7 sinclairql: system unit changes and improvements, patch by Marcel Kilgus in qlforum.co.uk, merged with minor tweaks
git-svn-id: trunk@47562 -
2020-11-24 19:55:13 +00:00
Károly Balogh
aa1bbb591c sinclairql: initial implementation of RTL file I/O functions, patch by Marcel Kilgus in qlforum.co.uk
git-svn-id: trunk@47561 -
2020-11-24 19:28:47 +00:00
Károly Balogh
75eaca8ab4 sinclairql: QDOS interface wrapper function improvements, patch by Marcel Kilgus in qlforum.co.uk, merged with minor tweaks
git-svn-id: trunk@47558 -
2020-11-24 16:24:34 +00:00
pierre
68d3962889 Regenerate all Makefile's, and update utils/fpcm/fpcmake.inc and utils/fpcm/revision.inc after commit 47483
git-svn-id: trunk@47484 -
2020-11-20 14:03:57 +00:00
nickysn
8862709fb1 * synchronized with trunk
git-svn-id: branches/wasm@47463 -
2020-11-20 00:00:53 +00:00
Károly Balogh
6f59167c64 sinclairql: more work on the QL port. very basic stdio (console writeln) works.
git-svn-id: trunk@47455 -
2020-11-19 04:51:56 +00:00
Károly Balogh
9d67adcbb6 * regenerated all Makefiles after Sinclair QL support was added
git-svn-id: trunk@47453 -
2020-11-19 02:58:27 +00:00
Károly Balogh
2a733aa751 sinclairql: fixed the relocation marker comment in the startup code. no functional change
git-svn-id: trunk@47432 -
2020-11-15 23:19:38 +00:00
Károly Balogh
f2ee1dae52 sinclairql: startup code fixes. set the top of the new stack as stack pointer, not the bottom of it. initialize the .bss section following the new linker script. better protection against re-relocation.
git-svn-id: trunk@47429 -
2020-11-15 22:59:33 +00:00
Károly Balogh
157e8792c5 sinclairql: add a few more QDOS function wrappers which are useful at early stage
git-svn-id: trunk@47420 -
2020-11-15 04:55:42 +00:00
Károly Balogh
51d8ec90a7 sinclairql: now the target short name is also sinclairql as proposed by Pierre, so it's unified everywhere
git-svn-id: trunk@47376 -
2020-11-10 21:31:04 +00:00
Károly Balogh
3870c4791c sinclairql: disabled a bunch of things in RTL until they're implemented
git-svn-id: trunk@47361 -
2020-11-09 01:34:24 +00:00