nickysn
9fc1d39beb
+ implemented code generation for signed 16/32/64-bit comparisons (<,<=,>,>=)
...
git-svn-id: branches/z80@44980 -
2020-04-21 23:00:32 +00:00
nickysn
ce8ed9efa8
+ added another helper tcgz80.a_jmp_signed_cmp_3way
...
git-svn-id: branches/z80@44979 -
2020-04-21 22:48:44 +00:00
nickysn
ded10c55b3
- removed an extra unused jump
...
git-svn-id: branches/z80@44978 -
2020-04-21 22:17:30 +00:00
nickysn
027217d1fe
* fixed an OP_SUB bug in tcgz80.a_op_const_reg_internal
...
git-svn-id: branches/z80@44977 -
2020-04-21 22:05:02 +00:00
nickysn
c1fa5600f1
+ implemented code generation for unsigned 16,32 and 64-bit comparisons (<,<=,>,>=)
...
git-svn-id: branches/z80@44976 -
2020-04-21 21:52:55 +00:00
nickysn
a714a2fb76
+ added a jmp helper that handles all possible combinations of jump on below, equal and above (unsigned comparison)
...
git-svn-id: branches/z80@44975 -
2020-04-21 21:38:15 +00:00
nickysn
08f02cfd87
+ implemented code generation for 16-bit, 32-bit and 64-bit equal and unequal comparisons. </<=/>/>=
...
are still 8-bit only.
git-svn-id: branches/z80@44974 -
2020-04-21 20:37:05 +00:00
nickysn
902b8e0958
+ implemented Move() using inline asm
...
git-svn-id: branches/z80@44972 -
2020-04-21 19:27:27 +00:00
nickysn
0bbd140228
* fixed handling of untyped const parameters
...
git-svn-id: branches/z80@44971 -
2020-04-21 19:19:17 +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
c616c8df32
+ implemented Sptr
...
git-svn-id: branches/z80@44967 -
2020-04-21 17:25:48 +00:00
nickysn
4e4cb4fd9d
+ implemented get_frame
...
git-svn-id: branches/z80@44966 -
2020-04-21 17:16:17 +00:00
nickysn
2aa248bba2
* FillChar changed to a pure assembler procedure
...
git-svn-id: branches/z80@44965 -
2020-04-21 16:48:54 +00:00
nickysn
7bfce62302
* fixed stack direction in assignintreg. This fixes problems with the parameter location calculation.
...
git-svn-id: branches/z80@44964 -
2020-04-21 16:41:43 +00:00
nickysn
fcaf2fe5a0
* stack_offset changed to longint
...
git-svn-id: branches/z80@44963 -
2020-04-21 16:34:21 +00:00
nickysn
0332a60cb8
* cur_stack_offset changed to longint
...
git-svn-id: branches/z80@44962 -
2020-04-21 16:31:15 +00:00
nickysn
c67fa28d7c
* use a LD sequence for 2-byte moves as well in tcgz80.g_concatcopy
...
git-svn-id: branches/z80@44961 -
2020-04-21 16:26:04 +00:00
nickysn
f8b0c24024
+ support pushing word-sized parameters in a_load_reg_cgpara
...
git-svn-id: branches/z80@44911 -
2020-04-21 03:48:36 +00:00
nickysn
2b4ed4e90d
+ inline assembler implementation of FillChar
...
git-svn-id: branches/z80@44910 -
2020-04-21 03:26:34 +00:00
nickysn
e261ea8e2b
- disable some rtl/compiler features on the ZX Spectrum
...
git-svn-id: branches/z80@44909 -
2020-04-21 03:03:06 +00:00
nickysn
391990e456
* tg.direction is always -1 on the Z80
...
git-svn-id: branches/z80@44908 -
2020-04-21 03:02:43 +00:00
nickysn
d3e946b779
* fixed Z80 stack and temp allocation, so it doesn't have any wasted bytes
...
git-svn-id: branches/z80@44906 -
2020-04-21 02:51:44 +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
aeafe0db40
+ added math.inc and set.inc for Z80, empty for now
...
git-svn-id: branches/z80@44903 -
2020-04-21 02:05:10 +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
168c009bc3
- removed the 'sdcc-' prefix of sdasz80 and sdldz80
...
git-svn-id: branches/z80@44900 -
2020-04-20 23:50:45 +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
557a481743
+ use normalize_ref in tcgz80.a_load_ref_reg
...
git-svn-id: branches/z80@44897 -
2020-04-20 21:44:36 +00:00
nickysn
1813727faf
+ support addr_full in the sdcc-sdasz80 asm writer
...
git-svn-id: branches/z80@44896 -
2020-04-20 21:38:31 +00:00
nickysn
bee3e9c354
+ make use of normalize_ref in tcgz80.a_load_reg_ref
...
git-svn-id: branches/z80@44895 -
2020-04-20 21:34:10 +00:00
nickysn
a7b69cd18b
- removed make_simple_ref, because normalize_ref should be used instead
...
git-svn-id: branches/z80@44894 -
2020-04-20 20:52:07 +00:00
nickysn
0d6e59e9ef
+ actually return the proper (HL) reference result in tcgz80.normalize_ref
...
git-svn-id: branches/z80@44893 -
2020-04-20 20:49:45 +00:00
nickysn
5c138c341f
+ added an output parameter to tcgz80.normalize_ref, that returns a list of the registers that were
...
actually used, so they can be freed after the reference is used.
git-svn-id: branches/z80@44892 -
2020-04-20 20:46:30 +00:00
nickysn
fc991af9d1
+ added tregisterlist - dynarray of tregister, and methods get/uncpuregisters for allocating/freeing
...
a dynamic list of registers
git-svn-id: branches/z80@44891 -
2020-04-20 20:42:16 +00:00
nickysn
882522259e
+ initial implementation of tcgz80.normalize_ref
...
git-svn-id: branches/z80@44890 -
2020-04-20 20:27:08 +00:00
florian
b4ff93c9fe
+ forgotten files added
...
git-svn-id: trunk@44889 -
2020-04-20 20:08:19 +00:00
svenbarth
068f0d2ec8
* fix for Mantis #36935 : apply patch by J. Gareth Moreton to fix a typo in cs_opt_remove_empty_proc
...
git-svn-id: trunk@44888 -
2020-04-20 18:42:30 +00:00
svenbarth
752ff32333
* fix WinAPI directive: the purpose is to present the OS' default calling convention which for Windows means stdcall (at least on those platforms that support stdcall) on other platforms it is cdecl (for now)
...
git-svn-id: trunk@44887 -
2020-04-20 18:29:28 +00:00
nickysn
6e1dd417cf
+ only allow the first operand to be a condition
...
git-svn-id: branches/z80@44886 -
2020-04-20 17:07:21 +00:00
nickysn
a6e72713ad
+ support conditions in the Z80 inline assembler
...
git-svn-id: branches/z80@44885 -
2020-04-20 17:02:03 +00:00
nickysn
e5f4419694
+ also support local labels in the Z80 inline assembler reader
...
git-svn-id: branches/z80@44884 -
2020-04-20 16:08:13 +00:00
nickysn
90fa75fb7a
+ support labels in the Z80 inline assembler
...
git-svn-id: branches/z80@44883 -
2020-04-20 15:49:11 +00:00
pierre
cd6de6a4ca
Regenerate all Makefiles
...
git-svn-id: trunk@44882 -
2020-04-20 13:58:47 +00:00
pierre
3f9e6aa6b9
Add handling of sparc64-linux and pass -m32/-m64 to $CROSSGCC call
...
git-svn-id: trunk@44881 -
2020-04-20 13:57:26 +00:00
pierre
4d25558519
* Use off_t type for l_start and l_end fields instead of kernel_off_t
...
+ Distinguish rlim_t type depending on fs32bit macro being set or not.
git-svn-id: trunk@44879 -
2020-04-20 09:50:07 +00:00
pierre
4888c379c4
Use same field type and name as in /ust/include/sys/stat.h
...
git-svn-id: trunk@44878 -
2020-04-20 09:37:55 +00:00