Closed Squall-FF8 closed 2 years ago
Yes. This is a terrible bug. Instruction with labels were only defined to JSR and JMP instructions. A fix has done in version 0.7.3. But the references to the labels only support the label "bmp", not expressions like "bmp+2". It will require more work to implement this kind of expressions.
It would be very nice to be able to do label or var reference with a constant value added to it. E.g. for accessing a part of a large array (see my ticket #28 on that).
Several improves has been added in ASM blocks, in the trunk 0.8, including arithmetic operations in operands for ASM instructions.
Issue is solved in version 0.9.0.
That is a terrible bug! It seems the compiler doesn't calculate the labels inside asm...end block! Both lines that have bmp+2 are wrong!