Skip to content

wrong label in disassembled CLEO script #381

@x87

Description

@x87

Under certain conditions the disassembler can replace main.scm offset with a local label.

  1. the offset should be positive (i.e. reference some instruction in MAIN)
  2. the script should have an instruction at the exact same offset.

after disassembling and comping, the offset changes from X to -X.

synthetic repro

{$CLEO}
nop
gosub 2

after recompiling it becomes gosub -2

This bug only affects standalone CLEO scripts/missions and not main.scm.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions