Skip to content

False-Positive Error "A jump to offset 0 found" #395

@x87

Description

@x87
DEFINE MISSIONS 2
DEFINE MISSION {ID} 0 AT {LABEL} @Mission1
DEFINE MISSION {ID} 1 AT {LABEL} @Mission2
DEFINE EXTERNAL_SCRIPTS -1 // Use -1 to not build script.img, or 0 to build script.img with a dummy script
DEFINE UNKNOWN_EMPTY_SEGMENT 0
DEFINE UNKNOWN_THREADS_MEMORY 0

:Mission1
if 0@ == 0
then
    terminate_this_script
    // <------------ hidden jump here, which matches :Mission2 location
    // compiler converts it to 0, but should calculated relative to :Mission1 instead
end
// terminate_this_script // <------- uncomment `terminate_this_script` to fix the error

:Mission2
terminate_this_script

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions