Skip to content

The no-label-macro isn't properly detected and results in a Segmentation Fault #23

@electrickery

Description

@electrickery

While trying to debug issue #22 I found that the "no label" case results in a Segmentation Fault:

$ ./a09 test.asm

A09 Assembler V1.62
Segmentation fault
$

test.asm:

; no label MACRO

    MACRO
        NOP
        ENDM
        
        ORG     $0
        TEST
        END

The code is recently (2025-06-02) pulled from the repo. System is MX-23.6_x64 Libretto October 15, 2023.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions