This is the mail archive of the cgen@sourceware.org mailing list for the CGEN project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Instruction w/ prefix


Dmitry Eremin-Solenikov wrote:
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?


Hi. Sorry for the slow reply.


I think the right solution (which I wouldn't wait for) is to extend cgen to handle instruction prefixes.

In the meantime, I would treat the prefix as its own instruction.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]