Skip to content

error occur with sgdt and sidt in 64bit after nasm 3.0 #130

@ku7431

Description

@ku7431

before nasm 3.0 sgdt and sidt are not have problem.
but after updated to nasm 3.0
when trying to assemble a code that include sgdt and sidt in 64bit option

error: instruction not valid with 32-bit operand size
panic: assertion data.inslen >= 0 failed in assemble at asm/assemble.c:986

failed to assemble with this error.
assemble fails regardless of whether addressing is done using registers or labels.

seg_label:
    dw 0
    dq 0

seg_code:
    sgdt [rax]
    sidt [rax]
    sgdt [seg_label]
    sidt [seg_label]
; all errors occur

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions