Open sircodalotkob opened 6 hours ago
The simple problem described above can be solved using a wla-dx function instead of a macro. But unlike macros, functions cannot be used to generate code.
I'm afraid that the instruction parsers per architecture parse registers 1:1 directly from the source code without any room for aliases/substitutions. There might be a possibility for a workaround/hack here, but not sure. Probably not a simple and quick thing to fix...
Also I think you are the 1st person here who has posted anything related to the 68000 support in WLA DX - I hope it works :)
Sometimes, it could be handy to have pure literal parameters in a macro that don't get evaluated or resolved at all.
Consider this macro which performs a complex calculation and then stores the result:
We can call it to store the result in a provided memory location:
However, we cannot call it to store the result in a register:
wla-dx tries to evaluate or resolve the given parameters and consequently gives us
FIX_REFERENCES: Reference to an unknown label "d0".
for the first example. Currently, there doesn't seem to be a way to have a wla-dx macro just output literals.