Commit Graph

58897 Commits

Author SHA1 Message Date
nickysn
5a5a8602d3 * optimization in tcgz80.a_load_const_cgpara for pushing longints, where the low 16 bits are equal
to the high 16 bits (works for e.g. 0)

git-svn-id: branches/z80@45126 -
2020-04-26 21:12:15 +00:00
nickysn
3338603bb8 * generate better code in tcgz80.a_loadaddr_ref_reg
git-svn-id: branches/z80@45125 -
2020-04-26 20:58:52 +00:00
nickysn
5be4ce281f * don't reorder LOC_REFERENCE parameters on the Z80 also
git-svn-id: branches/z80@45122 -
2020-04-26 19:49:17 +00:00
nickysn
44d95ef7c8 + generate better code in op_const_reg for OP_ADD and OP_SUB by using in certain cases A_DEC for OP_SUB
and A_INC for OP_ADD

git-svn-id: branches/z80@45120 -
2020-04-26 17:24:53 +00:00
nickysn
7957560fba + implemented tcgz80.a_adjust_sp
git-svn-id: branches/z80@45116 -
2020-04-26 17:04:15 +00:00
nickysn
723faf14a9 - removed GetByteLoc, because it isn't used
git-svn-id: branches/z80@45113 -
2020-04-26 16:44:14 +00:00
nickysn
ff0c771e2e - removed unused local vars
git-svn-id: branches/z80@45112 -
2020-04-26 16:42:19 +00:00
nickysn
9b9197c06e * formatting
git-svn-id: branches/z80@45111 -
2020-04-26 16:42:03 +00:00
nickysn
5de66f75a0 - removed commented out code from tcgz80.a_cmp_reg_reg_label
git-svn-id: branches/z80@45110 -
2020-04-26 16:41:44 +00:00
nickysn
ab8f9cc707 - removed commented out code from tcgz80.done_register_allocators
git-svn-id: branches/z80@45109 -
2020-04-26 16:40:52 +00:00
nickysn
1713176078 - removed commented out code from tcgz80.a_load_reg_cgpara
git-svn-id: branches/z80@45108 -
2020-04-26 16:40:21 +00:00
nickysn
3d5452cda3 - removed commented out code from tcgz80.a_load_ref_cgpara
git-svn-id: branches/z80@45107 -
2020-04-26 16:39:36 +00:00
nickysn
ab6d9e9df9 - removed tcgz80.maybegetcpuregister, because it isn't used
git-svn-id: branches/z80@45106 -
2020-04-26 16:38:29 +00:00
nickysn
05ca71133f + implemented OP_MUL/OP_IMUL in tcgz80.a_op_reg_reg_internal
git-svn-id: branches/z80@45105 -
2020-04-26 16:37:53 +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
3a80895e34 * fixed section writing with smartlinking the sdcc-sdasz80 asm writer
git-svn-id: branches/z80@45103 -
2020-04-26 15:35:03 +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
3e38e3acc5 + added system_z80_embedded to systems_embedded
git-svn-id: branches/z80@45101 -
2020-04-26 14:45:31 +00:00
nickysn
3dec4eece8 * fixed Z80 setjmp/longjmp
git-svn-id: branches/z80@45100 -
2020-04-26 14:39:27 +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
3afdab19a1 + implemented fpc_setjmp and fpc_longjmp for the Z80
git-svn-id: branches/z80@45095 -
2020-04-26 13:30:13 +00:00
nickysn
085fdcf3ab * moved the ZX Spectrum program load address lower, so we could fit more code and data
git-svn-id: branches/z80@45093 -
2020-04-26 12:30:05 +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
3d81dd0b00 * ReplaceForbiddenAsmSymbolChars renamed ApplyAsmSymbolRestrictions, because now it also applies the
label length limit

git-svn-id: branches/z80@45085 -
2020-04-26 10:42:07 +00:00
nickysn
4165e3224a - removed some commented out code that won't be needed
git-svn-id: branches/z80@45084 -
2020-04-26 10:36:17 +00:00
nickysn
55f12aac03 + added the tf_no_objectfiles_when_smartlinking target flag to z80-zxspectrum and z80-embedded
git-svn-id: branches/z80@45083 -
2020-04-26 10:22:07 +00:00
nickysn
b1f7770845 + enable tf_smartlink_library and support library-based smartlinking on the z80-embedded target
git-svn-id: branches/z80@45082 -
2020-04-26 10:19:06 +00:00
nickysn
f74d7f1059 * switch back to using an unscripted ar for the ZX Spectrum target
git-svn-id: branches/z80@45081 -
2020-04-26 10:11:20 +00:00
nickysn
df65884b7e * synchronized with trunk
git-svn-id: branches/z80@45079 -
2020-04-25 21:13:31 +00:00
nickysn
d359787c91 * loop forever in system_exit
git-svn-id: branches/z80@45078 -
2020-04-25 21:10:42 +00:00
nickysn
f6ab9729fb * fixed writing sdcc-sdldz80 library files to the linker script
git-svn-id: branches/z80@45077 -
2020-04-25 21:09:56 +00:00
florian
951f02d188 * correctly set register size
git-svn-id: trunk@45076 -
2020-04-25 19:35:28 +00:00
nickysn
db4581041a * moved $EXTRAOPT before $OBJ
git-svn-id: branches/z80@45075 -
2020-04-25 16:42:31 +00:00
nickysn
fdbf1f4b7f + supported scripted sdcc-sdar
git-svn-id: branches/z80@45073 -
2020-04-25 15:39:46 +00:00
nickysn
8bd38e0e29 + added new ar - sdcc-sdar
git-svn-id: branches/z80@45072 -
2020-04-25 15:28:35 +00:00
nickysn
3580c53b05 + enabled library-based smart linking for the ZX Spectrum target (not fully working yet)
git-svn-id: branches/z80@45071 -
2020-04-25 14:09:38 +00:00
Mattias Gaertner
bb4557c5fe fcl-passrc: allow static directive repetition in method implementation
git-svn-id: trunk@45069 -
2020-04-25 13:54:15 +00:00
nickysn
91289fddf4 + emit a label in g_intf_wrapper, even though the entire function is not yet implemented. For now, this
is enough to avoid linking errors

git-svn-id: branches/z80@45068 -
2020-04-25 13:45:37 +00:00
nickysn
2e55f9f4ab + support ait_realconst in the SDCC-SDASZ80 asm output
git-svn-id: branches/z80@45067 -
2020-04-25 13:12:18 +00:00
nickysn
a8fe46c0f5 + introduced labelmaxlen in tasminfo and added code in ReplaceForbiddenAsmSymbolChars that limits the
output label to that length

git-svn-id: branches/z80@45066 -
2020-04-25 12:59:25 +00:00
nickysn
084b4187f8 * dollar sign changed to dollar in the SDCC-SDASZ80 asm output
git-svn-id: branches/z80@45065 -
2020-04-25 12:38:52 +00:00
nickysn
2bcd6f4c17 + apply ReplaceForbiddenAsmSymbolChars to all symbols in the SDCC-SDASZ80 assembler output
git-svn-id: branches/z80@45064 -
2020-04-25 12:38:23 +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
b15c66b396 * fixed tcgz80.a_call_reg
git-svn-id: branches/z80@45062 -
2020-04-25 11:06:58 +00:00
nickysn
4b88e8f48e * fixed label placement in tcgz80.a_cmp_const_reg_label for 16-bit/32-bit operations OC_GT,OC_LT,OC_GTE,OC_LTE,OC_BE,OC_B,OC_AE,OC_A
git-svn-id: branches/z80@45061 -
2020-04-25 09:44:34 +00:00
pierre
687b31575b Update revision.inc after commit 44920
git-svn-id: trunk@45060 -
2020-04-25 08:14:17 +00:00
nickysn
1943e3fc63 * synchronized with trunk
git-svn-id: branches/z80@45059 -
2020-04-24 21:38:20 +00:00