Skip to content

[Bug]: Inconsistent handling of 66 prefix on near branches (Intel disregards) #126

Backlog

Description

@pkhuong

Description

Empirically, a 66 prefix in front of near branches (Jcc, JMP, CALL, RET, LOOP* and JRCXZ) is a no-op on Intel machines, but other vendors' HW do truncate RIP to 16 bits.

The SDM appears to agree with the non-Intel implementation: it applies Operand_Size and finds an operand size of 16.

Both behaviours are found in the wild, but I would expect Intel's SDM to describe Intel's implementation.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions