t-edson / P65Pas

CPU 6502 Pascal Compiler/IDE/Debugger
GNU General Public License v3.0
123 stars 27 forks source link

compiled code doesn't much the asm ... end block #18

Closed Squall-FF8 closed 2 years ago

Squall-FF8 commented 5 years ago

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! image

t-edson commented 4 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.

mvdhoning commented 3 years ago

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).

t-edson commented 2 years ago

Several improves has been added in ASM blocks, in the trunk 0.8, including arithmetic operations in operands for ASM instructions.

t-edson commented 2 years ago

Issue is solved in version 0.9.0.