This is the mail archive of the
cgen@sourceware.org
mailing list for the CGEN project.
Instruction w/ prefix
- From: Dmitry Eremin-Solenikov <dbaryshkov at gmail dot com>
- To: cgen at sources dot redhat dot com
- Date: Wed, 7 Oct 2009 19:02:16 +0200
- Subject: Instruction w/ prefix
Hello,
I'm using cgen to create binutils port for the CISC architecture
(M68HC(S)08 if somebody cares). I've stumbled upon one problem: the is
an instruction prefix which can change meaning
of the next instruction (basically it then uses SP register instead of IX one).
What is the most clean way to do this w/ cgen? I can of course
duplicate instruction fields, counting another byte in the beginning,
instructions, etc.. This will permit me to catch illegal combinations.
OTOH it doesn' look like completely clean idea.
What would you suggest?
--
With best wishes
Dmitry