Hello folks,
I am trying to compile a Motorola 68000 Assembler source in an inline block (
asm … end;).
I have such an instruction:
move.w -48(pc,d0.w),d0 // 303B 00D0
Getting the following error:
Error: warning 2069 in line 475 of "<path>/<file>.s": encoding absolute displacement directly
As you can see, it's originally a warning from the assembler layer but it becomes and error on the compiler level.
What could I do to get rid of this warning/error? I know what displacement is but in this case I think that the D0 register used (
-48(pc,d0.w)) makes the displacement relative (unless its content is somehow known to the assembler?).
How do I make the displacement absolute? Or is there an error on the inline assembler side?
Tried this:
move.w H544(pc,d0.w),d0 // 303B 00D0
where
H544 is a label but that kind of syntax doesn’t seem to be supported. Getting an
Assembler syntax error.