I looked a bit into source code. Some features should be easy to add.
But here is list what I still don't know:
- where to add correctly support for instruction suffixes .S .L .IS .IL
and their combinations
- whether linker is capable of linking 24-bit addresses for ADL mode
I guess that the best place for adding support for suffixes will be in
z80mch.c in function machine(mp).
In eZ80 mode, there should be added check whether instruction continues
with '.' and valid suffix combination.
Regarding 24-bit, in function outrw() there is check IS_C24() which ends
with error being printer. It seems that sdcc doesn't support more than
16-bit addresses, right? But out_txb() function which is called can
write up to four bytes...
I can start adding new instructions, hopefully also suffixes, but I
don'w know if I'll be able to add also support for 24-bit immediate data...
Best regards,
Hynek Sladky
Dne 16.10.2018 v 11:40 Philipp Klaus Krause napsal(a):
Compared to Z18ß0, we'd need at least:
* Support for the 16-bit ld variants
* Support for the lea instruction
* Support for the pea instruction
* An error message on encountering any of ld b, b; lb c, c; ld d, d; ld
e, e.
Nice to have would be:
* Support for the instructions using ir.
* Support for .SIL, .SIS, .LIS, .LIL
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user