Skip to content

Clear DF flag to conform to x86-64 calling convention #15

@tangruize

Description

@tangruize

The X86-64 System V ABI requires the DF flag (Direction Flag) to be cleared (DF = 0) on function entry and return. If DF is not cleared, it can lead to undefined and unpredictable behavior during string operations.

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