Commit Graph

58493 Commits

Author SHA1 Message Date
nickysn
f7c213738e * fixed the encoding of negative integers in BAS_EncodeNumber
git-svn-id: branches/z80@44593 -
2020-04-05 15:28:32 +00:00
nickysn
686022c971 + introduced BAS_EncodeLine to make it easier to construct BASIC programs
git-svn-id: branches/z80@44592 -
2020-04-05 15:13:53 +00:00
nickysn
8619a8cb32 + introduced BAS_EncodeNumber to make it easier to encode numbers in the BASIC program
git-svn-id: branches/z80@44591 -
2020-04-05 15:06:26 +00:00
nickysn
ac1d4ad499 + added unit zxbasic, containing ZX Spectrum constants for the ZX BASIC keywords
* use these constants to construct the BASIC program loader (so it's now less cryptic what we're writing there)

git-svn-id: branches/z80@44590 -
2020-04-05 14:51:08 +00:00
nickysn
65d2220eb9 + added description in the inital source files comments of ihx2tzx
git-svn-id: branches/z80@44589 -
2020-04-05 14:31:40 +00:00
nickysn
175cbf672f + initial implementation of an .IHX (Intel hex format) to .TZX (ZX Spectrum tape file format) file conversion tool
git-svn-id: branches/z80@44588 -
2020-04-05 04:23:46 +00:00
nickysn
d8ca077c33 + add externals as .globl directives in the sdcc-sdasz80 assembler output
git-svn-id: branches/z80@44587 -
2020-04-04 23:15:57 +00:00
nickysn
c0b4e5c994 - removed the unused 's: topsize' parameter to TSdccSdasZ80Assembler.WriteOper
git-svn-id: branches/z80@44586 -
2020-04-04 23:04:35 +00:00
nickysn
1b06b649a7 * use is_calljmp to determine whether to use WriteOper_jmp in the sdcc-sdasz80 asm writer. This fixes
asm output for call instructions.

git-svn-id: branches/z80@44585 -
2020-04-04 23:03:13 +00:00
nickysn
87eae35e2f * synchronize with trunk
git-svn-id: branches/z80@44584 -
2020-04-04 22:54:29 +00:00
nickysn
fdc24164a0 + implemented 8-bit signed comparisons as well
git-svn-id: branches/z80@44583 -
2020-04-04 20:59:52 +00:00
nickysn
8a1be73ce0 * also use the unsigned 8-bit comparison code for 8-bit signed equal/unequal comparisons
git-svn-id: branches/z80@44582 -
2020-04-04 20:28:53 +00:00
nickysn
55c18a11a0 - removed commented out code from TZ80AddNode.second_cmp
git-svn-id: branches/z80@44581 -
2020-04-04 20:16:11 +00:00
nickysn
9dc8744b53 - removed debug writeln
git-svn-id: branches/z80@44580 -
2020-04-04 20:15:10 +00:00
nickysn
59d7a45215 * generate more optimal code for unsigned 8-bit comparisons in TZ80AddNode.second_cmp
git-svn-id: branches/z80@44579 -
2020-04-04 20:14:31 +00:00
florian
e32027c8d3 + add missing semicolon, resolves #36868
git-svn-id: trunk@44578 -
2020-04-04 20:04:01 +00:00
florian
0ff034216a + xtensa-linux support for the rtl makefile
git-svn-id: trunk@44577 -
2020-04-04 20:01:13 +00:00
nickysn
5585bdb6aa + also support unsigned 8-bit > and <= in TZ80AddNode.second_cmp. All 8-bit unsigned comparisons now
work.

git-svn-id: branches/z80@44576 -
2020-04-04 17:49:13 +00:00
nickysn
f52f9dc56b + added a not-yet-complete implementation of TZ80AddNode.second_cmp. Only 8-bit unsigned comparison
works for now, and only for the <,= and <> operators

git-svn-id: branches/z80@44575 -
2020-04-04 17:15:31 +00:00
nickysn
3ed692a157 + implemented tcgz80.a_jmp_flags
git-svn-id: branches/z80@44574 -
2020-04-04 17:07:54 +00:00
nickysn
ff655543ed + support conditional jumps in the sdcc-sdasz80 assembler writer
git-svn-id: branches/z80@44573 -
2020-04-04 17:05:49 +00:00
nickysn
d05a632616 + write jump operands (not all forms supported yet) in the sdcc-sdasz80 asm output
git-svn-id: branches/z80@44572 -
2020-04-04 16:59:14 +00:00
nickysn
fb3a079916 * updated TAsmCond and TResFlags for the Z80
git-svn-id: branches/z80@44571 -
2020-04-04 16:12:47 +00:00
nickysn
99e304165e * fix for 64-bit OP_AND/OP_OR/OP_XOR in tcgz80.a_op_reg_reg_internal
git-svn-id: branches/z80@44570 -
2020-04-04 15:33:01 +00:00
nickysn
c0b3eb70ac + fix for 64-bit OP_NOT in tcgz80.a_op_reg_reg_internal
git-svn-id: branches/z80@44569 -
2020-04-04 15:30:43 +00:00
nickysn
5b8fd51b3a + implemented OP_NEG in tcgz80.a_op_reg_reg_internal
git-svn-id: branches/z80@44568 -
2020-04-04 15:27:28 +00:00
nickysn
a362c3247d + added instruction encoding info for all the remaining Z80 instructions
git-svn-id: branches/z80@44567 -
2020-04-04 13:49:07 +00:00
Károly Balogh
086c897981 amicommon: m68k-amiga legacy support
git-svn-id: trunk@44566 -
2020-04-04 13:24:29 +00:00
Károly Balogh
8816a0b601 m68k-amiga: startup code now uses legacyexech, instead of explicitly declaring legacy support functions it needs
git-svn-id: trunk@44565 -
2020-04-04 13:22:46 +00:00
Károly Balogh
8d690546f3 m68k-amiga: make all legacy support functions have a public name, and supply headers for them (will be utilized by athreads, dos, and sysutils units)
git-svn-id: trunk@44564 -
2020-04-04 13:21:54 +00:00
Károly Balogh
632353a808 m68k-amiga: prepare the startup code and system unit for legacy support
git-svn-id: trunk@44563 -
2020-04-04 12:53:00 +00:00
Károly Balogh
433e40fe71 m68k-amiga: while trying to construct ParamStr(0), if the directory is empty, do not prepend the binary name with '/'
git-svn-id: trunk@44562 -
2020-04-04 12:48:51 +00:00
Károly Balogh
e0fe8bd175 m68k-amiga: implemented functions required for basic parameter handling in legacydos
git-svn-id: trunk@44561 -
2020-04-04 12:40:55 +00:00
Károly Balogh
f5becf9ac6 m68k-amiga: implemented StackSwap and DeletePool in legacyexec support, also declare public name for a few functions, so the startup code can hook into them
git-svn-id: trunk@44560 -
2020-04-04 12:39:55 +00:00
Károly Balogh
3509d277d0 amiga: use -mtype vlink argument instead of -sc -sd when doing section gc. this prevents merging the bss section into the data section and is more compatible with pre-v2.0 OS versions. needs vlink 0.16b or newer
git-svn-id: trunk@44559 -
2020-04-04 11:08:45 +00:00
nickysn
c5aa1193bf + started describing the instructions encoding
git-svn-id: branches/z80@44558 -
2020-04-04 02:35:15 +00:00
nickysn
4027ad18e0 + added strict validation for the param types in z80ins.dat
git-svn-id: branches/z80@44557 -
2020-04-04 02:11:20 +00:00
nickysn
20eab5582f + generate the Z80 instruction enum and string table from z80ins.dat via a newly created tool
git-svn-id: branches/z80@44556 -
2020-04-04 01:36:07 +00:00
nickysn
6a2dbad8ca * synchronize with trunk
git-svn-id: branches/z80@44555 -
2020-04-04 00:36:08 +00:00
nickysn
565cc0e96b + created a parseable Z80 instruction description file, very loosely based on x86ins.dat. Parser not
implemented yet, but will be soon.

git-svn-id: branches/z80@44554 -
2020-04-04 00:21:50 +00:00
nickysn
9309e2c42e * replace 'add/adc/sub/sbc/and/or/xor/cp orgreg' with 'add/adc/sub/sbc/and/or/xor/cp spilltemp' in
trgcpu.do_spill_replace

git-svn-id: branches/z80@44553 -
2020-04-03 22:42:02 +00:00
nickysn
e43834c5d0 * replace 'inc/dec orgreg' with 'inc/dec spilltemp' in trgcpu.do_spill_replace
git-svn-id: branches/z80@44552 -
2020-04-03 22:19:40 +00:00
florian
96a368fdf9 * building on non-x86/non-xtensa fixed
git-svn-id: trunk@44551 -
2020-04-03 20:40:36 +00:00
florian
a6cfaa996a * few cleanups towards building the z80-embedded system unit
git-svn-id: branches/z80@44550 -
2020-04-03 20:37:27 +00:00
florian
d723b69325 * regenerated
git-svn-id: branches/z80@44549 -
2020-04-03 20:37:03 +00:00
florian
7ec42f5dc2 * merge artefacts removed
git-svn-id: branches/z80@44548 -
2020-04-03 20:31:51 +00:00
florian
89741ddeb5 * lazarus version updated
git-svn-id: branches/z80@44547 -
2020-04-03 20:25:47 +00:00
florian
0fc1ba26f8 * compilation fixed
git-svn-id: branches/z80@44546 -
2020-04-03 20:25:31 +00:00
florian
3705f95b92 * compilation fixed
git-svn-id: trunk@44545 -
2020-04-03 20:15:27 +00:00
florian
6c6a16a154 + xtensa-linux
git-svn-id: trunk@44544 -
2020-04-03 20:15:26 +00:00