Skip to content

call far ptr ds:[var] or call far ptr es:var not rejected (and therefore wrongly assembled) #1475

@stsp

Description

@stsp

I was stumbled at why my
code doesn't work. After some
disasm, it appears that
call far ptr ds:[var]
is assembled into a direct
far call with bogus segment.
I've found that I had to write:
call fword ptr ds:[var]
instead, and that works fine.

Still I think wrongly assembling
call far ptr ds:[var]
is not good. Maybe assembler
should just error on that?

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