Commit Graph

150 Commits

Author SHA1 Message Date
Jonas Maebe
350d2d92f9 * regenerated Makesfiles
git-svn-id: trunk@45762 -
2020-07-10 22:08:30 +00:00
nickysn
1ae70c6825 * switch to interrupt mode 2 and install a custom maskable interrupt handler in
the ZX Spectrum startup code, because the ROM handler requires the IY register
  to always have a specific value, but the FPC code generator uses the IY
  register for various purposes, which causes random crashes and glitches when
  the timer interrupt occurs.

git-svn-id: trunk@45677 -
2020-06-22 14:00:33 +00:00
nickysn
de08108b27 + clear the .bss section on startup in the ZX Spectrum RTL
git-svn-id: trunk@45624 -
2020-06-07 23:28:03 +00:00
nickysn
4a78b7e073 * fixed stack initialization in the ZX Spectrum startup code
git-svn-id: trunk@45623 -
2020-06-07 23:22:57 +00:00
svenbarth
b3ddd4e786 * regenerate Makefiles
git-svn-id: trunk@45601 -
2020-06-06 17:18:48 +00:00
pierre
c77ef7d6dd Regenerate all Makefile's after change in utils/fpcm/fpcmake.ini to better support use of i386 compiler on x86_64 machines
git-svn-id: trunk@45356 -
2020-05-13 13:53:15 +00:00
nickysn
56b79257a1 * fixed fpmake invokation when building an i386-linux snapshot on a x86_64-linux host
git-svn-id: trunk@45298 -
2020-05-06 20:41:01 +00:00
nickysn
e60ab7148d * fixed compilation with sdld
git-svn-id: trunk@45170 -
2020-04-29 01:53:01 +00:00
Károly Balogh
594138141a zxspectrum: in the pascal startup code, match start symbol name with the asm startup code
git-svn-id: trunk@45167 -
2020-04-29 01:18:37 +00:00
nickysn
59b90c24ed + initialize StackBottom and StackLength in the startup of the ZX Spectrum system unit
git-svn-id: trunk@45166 -
2020-04-29 01:10:52 +00:00
Károly Balogh
c206415450 zxspectrum: pascal startup code. this allows the RTL to be built with any assembler
git-svn-id: trunk@45165 -
2020-04-28 23:13:29 +00:00
nickysn
5594302d2a * fixed GotoXY (parameters were swapped)
git-svn-id: branches/z80@45137 -
2020-04-27 00:40:24 +00:00
nickysn
843024f3b7 * PrintChar and OpenChannel converted to pure assembler functions
git-svn-id: branches/z80@45135 -
2020-04-26 23:16:48 +00:00
nickysn
fe05a87a27 * made ErrOutput/StdErr a true alias of Output/StdOut to save memory
git-svn-id: branches/z80@45134 -
2020-04-26 23:10:08 +00:00
nickysn
cb169980b7 * cheat and declare many of the empty routines as 'inline' to save some precious memory bytes :)
git-svn-id: branches/z80@45133 -
2020-04-26 23:01:20 +00:00
nickysn
5c605f0a10 + console input (not working well, yet)
git-svn-id: branches/z80@45130 -
2020-04-26 22:32:52 +00:00
nickysn
d970112f26 + implemented console output in the ZX Spectrum RTL. Writeln('Hello, world!'); now works!!! :)
git-svn-id: branches/z80@45129 -
2020-04-26 22:18:23 +00:00
nickysn
78c40a6d70 * allow setting the stack size from FPC
git-svn-id: branches/z80@45104 -
2020-04-26 16:04:29 +00:00
nickysn
caecdfd51d + allow setting the heap size for the ZX Spectrum target
git-svn-id: branches/z80@45102 -
2020-04-26 14:58:47 +00:00
nickysn
57912f673f + added PrintShortString to the ZX Spectrum RTL to help with testing
git-svn-id: branches/z80@45099 -
2020-04-26 14:03:42 +00:00
nickysn
6088f4a882 + added Mem[] support to the ZX Spectrum system unit
git-svn-id: branches/z80@45098 -
2020-04-26 13:58:04 +00:00
nickysn
c343286b3e + initialize more stuff in the system unit. Stdio doesn't work yet... :(
git-svn-id: branches/z80@45097 -
2020-04-26 13:38:15 +00:00
nickysn
ded6fdd04f * reduced the stack area to 256 bytes
git-svn-id: branches/z80@45096 -
2020-04-26 13:31:45 +00:00
nickysn
a9bf07d1f9 * the system unit now compiles with FULL_RTL, so the ifdefs are removed. Smartlinking is required from
now on, for compiling programs, because the system unit becomes too large without it.

git-svn-id: branches/z80@45086 -
2020-04-26 11:01:45 +00:00
nickysn
d359787c91 * loop forever in system_exit
git-svn-id: branches/z80@45078 -
2020-04-25 21:10:42 +00:00
nickysn
0b73bfa3ab * the dummy fpc_InitializeUnits and fpc_do_exit procedures are only defined if system unit is compiled
without -dFULL_RTL

git-svn-id: branches/z80@45063 -
2020-04-25 11:13:32 +00:00
nickysn
11433210d7 + more dummy functions added
git-svn-id: branches/z80@45036 -
2020-04-23 03:19:56 +00:00
nickysn
4ca4f8abd5 + more dummy consts added
git-svn-id: branches/z80@45033 -
2020-04-23 03:05:18 +00:00
nickysn
02dbca9ae4 + added dummy sysdir.inc to the ZX Spectrum RTL
git-svn-id: branches/z80@45032 -
2020-04-23 03:03:42 +00:00
nickysn
f732b8413c + added dummy sysfile.inc
git-svn-id: branches/z80@45031 -
2020-04-23 03:01:39 +00:00
nickysn
91eeb82e5a + some dummy consts for the file io
git-svn-id: branches/z80@45030 -
2020-04-23 02:58:33 +00:00
nickysn
7ccebb5073 + include the tiny heap in the ZX Spectrum system unit, when compiled with -dFULL_RTL
git-svn-id: branches/z80@45028 -
2020-04-23 02:48:03 +00:00
nickysn
0d7e3921aa + added susheap.inc to the ZX Spectrum RTL (empty for now)
git-svn-id: branches/z80@45027 -
2020-04-23 02:35:11 +00:00
nickysn
9c27227d3a + include softfpu in the ZX Spectrum system unit, when compiled with -dFULL_RTL (which still doesn't work)
git-svn-id: branches/z80@45008 -
2020-04-22 22:25:52 +00:00
nickysn
86643f8a34 * synchronized with trunk
git-svn-id: branches/z80@44981 -
2020-04-21 23:36:44 +00:00
nickysn
902b8e0958 + implemented Move() using inline asm
git-svn-id: branches/z80@44972 -
2020-04-21 19:27:27 +00:00
nickysn
7f409534a1 + exposed FillChar, Sptr, get_frame, get_caller_addr, get_caller_frame from z80.inc even without FULL_RTL. This allows
testing them and using them for debugging (e.g. PrintHexWord(Word(Sptr)) now works)

git-svn-id: branches/z80@44969 -
2020-04-21 17:44:49 +00:00
nickysn
16b2fd4378 + compile z80.inc even without FULL_RTL
+ added extra defines to the system unit without FULL_RTL, so that more things can be compiled
- commented out stuff from z80.inc that doesn't compile yet. It will be uncommented as soon as the code generator
  starts being able to compile it

git-svn-id: branches/z80@44968 -
2020-04-21 17:39:33 +00:00
nickysn
1669254c5a + full RTL include, hidden behind ifdefs, because the code generator isn't able to compile it yet
git-svn-id: branches/z80@44905 -
2020-04-21 02:18:37 +00:00
nickysn
861ae0b139 + some rtl include files added
git-svn-id: branches/z80@44904 -
2020-04-21 02:11:52 +00:00
nickysn
6f874eefa6 + added keyboard input functions (ReadKey and KeyPressed) to the ZX Spectrum. Now you can start having fun! :)
git-svn-id: branches/z80@44902 -
2020-04-21 01:16:04 +00:00
nickysn
93be8bba50 + added fancier ZX Spectrum console output stuff: OpenChannel, Ink, Paper and GotoXY
git-svn-id: branches/z80@44901 -
2020-04-21 00:56:29 +00:00
nickysn
d57ffc4745 * changed the object file format for z80-embedded and z80-zxspectrum to .rel
git-svn-id: branches/z80@44899 -
2020-04-20 23:36:15 +00:00
nickysn
2f68090dd6 * synchronized with trunk
git-svn-id: branches/z80@44898 -
2020-04-20 22:42:08 +00:00
nickysn
0f323df7a3 * synchronized with trunk
git-svn-id: branches/z80@44873 -
2020-04-19 21:10:31 +00:00
nickysn
04a4ff3f3f * loop forever in fpc_do_exit in the ZX Spectrum RTL
git-svn-id: branches/z80@44869 -
2020-04-19 19:33:14 +00:00
nickysn
4bc5270f34 * jump to PASCALMAIN in the ZX Spectrum startup code
git-svn-id: branches/z80@44868 -
2020-04-19 19:32:30 +00:00
nickysn
21dd92df23 + added Makefile for the ZX Spectrum rtl
git-svn-id: branches/z80@44852 -
2020-04-19 14:45:14 +00:00
nickysn
8c87ef2a32 + added makefile.fpc for the ZX Spectrum RTL
git-svn-id: branches/z80@44814 -
2020-04-19 00:48:12 +00:00
nickysn
4f1174cc6e + added a very minimal and incomplete ZX Spectrum RTL
git-svn-id: branches/z80@44813 -
2020-04-19 00:24:22 +00:00