Peter Kuschnerus
2011-08-11 07:57:43 UTC
Hello,
Table entry STASG:
In my port I need for the source operand the addressing mode
"register indirect"
and I need for the destination the addressing mode "register indirect".
For the source operand, there is no problem to write the line:
SAREG, TPOINT,
but if I try the same for the destination operand,
the compiler complains:
Cannot generate code, ...
If I look at samples of other arch,
I see that there SOREG is used.
But OREG is not ok for me because I have no offset at this place,
My addressing mode "register indirect" has similar semantic as OREG
but without offset.
I wonder if I do something wrong or of it is not possible
to use this addressing mode.
The table entry that was complained about looked like this:
{ STASG, INAREG|FOREFF,
SAREG, TPOINT,
SAREG, TPOINT,
2*NAREG, RDEST,
"ZQ", }
Regards
Peter Kuschnerus
Table entry STASG:
In my port I need for the source operand the addressing mode
"register indirect"
and I need for the destination the addressing mode "register indirect".
For the source operand, there is no problem to write the line:
SAREG, TPOINT,
but if I try the same for the destination operand,
the compiler complains:
Cannot generate code, ...
If I look at samples of other arch,
I see that there SOREG is used.
But OREG is not ok for me because I have no offset at this place,
My addressing mode "register indirect" has similar semantic as OREG
but without offset.
I wonder if I do something wrong or of it is not possible
to use this addressing mode.
The table entry that was complained about looked like this:
{ STASG, INAREG|FOREFF,
SAREG, TPOINT,
SAREG, TPOINT,
2*NAREG, RDEST,
"ZQ", }
Regards
Peter Kuschnerus