Commit Graph

31 Commits

Author SHA1 Message Date
Karoly Balogh
919b556049 m68k-human68k: fix installation of sysconts and heaptrc units 2024-01-08 02:22:15 +01:00
Karoly Balogh
65234c674a human68k: less fail in regenerating a Makefile 2023-12-23 16:05:32 +01:00
Karoly Balogh
7c3e792bc1 human68k: regenerated Makefile after the previous commit 2023-12-23 15:36:51 +01:00
Karoly Balogh
c38280ef3e human68k: added a totally untested DOS unit to the RTL 2023-12-23 15:36:51 +01:00
Karoly Balogh
2648f8151d human68k: implemented some trivial functions in sysutils 2023-12-08 06:52:01 +01:00
Karoly Balogh
005cb5914c human68k: implemented do_rename 2023-12-06 04:41:28 +01:00
Karoly Balogh
8ceeb8d165 human68k: pre-fetch the version number of the OS during startup. and store it for easy access 2023-12-06 04:41:28 +01:00
Karoly Balogh
34519c67a1 human68k: implemented do_chdir 2023-12-06 04:41:28 +01:00
Karoly Balogh
14cee4c152 human68k: implemented do_getdir (based on the Atari version) 2023-12-05 11:25:03 +01:00
Karoly Balogh
70839bd7f4 human68k: cosmetics, no functional change 2023-12-05 09:53:42 +01:00
Karoly Balogh
93a257ab29 human68k: try not to nuke immediately during argument parsing, if memory allocation fails 2023-12-05 09:52:52 +01:00
Karoly Balogh
e867fce883 human68k: implemented do_open (based on the Atari version) 2023-12-05 09:49:22 +01:00
Karoly Balogh
1e066ba0bd human68k: one more rework after advices/reports from Pierre Muller, hopefully this fixes all remaning edge cases 2023-12-04 15:37:42 +01:00
Karoly Balogh
5c93f3e271 human68k: also fill the entire args buffer with zeros, for proper last argument termination 2023-12-03 23:49:51 +01:00
Karoly Balogh
a009cc5c35 human68k: fixed argv[0] generation, after figuring out that length() is something very different to strlen() 2023-12-03 14:22:53 +01:00
Karoly Balogh
d7812f6c05 human68k: fix zero termination of the last argument 2023-12-03 14:22:53 +01:00
Karoly Balogh
1fdd4f8c90 human68k: actually, the comm field coming from the OS is in ph68kdos_comline format, so use it accordingly 2023-12-03 12:14:22 +01:00
Karoly Balogh
a4c94c8b44 human68k: more work on getting tinyheap right. still doesn't seem to work, sadly, so still disabled 2023-12-03 12:14:22 +01:00
Karoly Balogh
60473c7ead human68k: parse the arguments passed to the program, fill out argc/argv, make ParamCount and ParamStr() to work 2023-12-03 09:54:05 +01:00
Karoly Balogh
0b65c173b8 human68k: disable tinyheap, as there's some memory trashing going on with it, and use the regular one for now 2023-12-03 09:54:05 +01:00
Karoly Balogh
d009941744 human68k: setup the stack, then use setblock to limit the memory usage to the amount we're really using. this frees up RAM, and allows the heap allocator to work. 2023-12-03 09:54:05 +01:00
Karoly Balogh
932849c1bf human68k: refactored some type naming used in the startup code 2023-12-03 09:54:05 +01:00
Karoly Balogh
d85d6b4bac human68k: handle the OS malloc returning errors properly 2023-12-03 09:54:05 +01:00
Karoly Balogh
fef24dabd6 human68k: minimal DOS calls error handling/inoutres mapping 2023-12-03 09:54:05 +01:00
Karoly Balogh
7ecb19f906 human68k: fixed a dumb typo on the bss start calculation. fixes FPC binaries under run68. 2023-12-01 21:03:07 +01:00
Karoly Balogh
42abb3395a human68k: implemented some basic file and I/O handling functions 2023-12-01 04:05:39 +01:00
Karoly Balogh
442e9d2573 human68k: RTL works enough now to run a hello, world! 2023-11-30 23:43:27 +00:00
Karoly Balogh
679f2f75b3 human68k: regenerated Makefiles 2023-11-30 23:43:27 +00:00
Karoly Balogh
c4c3c2a7aa human68k: add an RTL skeleton, almost nothing is implemented yet 2023-11-30 23:43:27 +00:00
Karoly Balogh
7bcd8dc883 human68k: have a README for the RTL 2023-11-30 23:43:27 +00:00
Karoly Balogh
cde3dd3a87 m68k: first bit of a Human68k RTL - a very dummy startup code 2023-11-30 23:43:27 +00:00