Skip to content

wrong label in disassembled CLEO script #381

Closed

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.

Activity

  1. added
    type:bug
    priority:p2
    on Jul 28, 2025
  2. added this to the v4.2.0 milestone on Jul 28, 2025
  3. x87 commented on Aug 5, 2025

    @x87
    CollaboratorAuthor

    fixed in 4.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:p2scope:disassemblertype:bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions