Skip to content

How do I use the IDIV instruction? (also: Reserving the AX register) #60

@pwaller

Description

@pwaller

The IDIV instruction puts its result in the AX register. The problem I have is that I can't figure out how to prevent GeneralPurposeRegister64 from allocating AX, so my pseudoregisters end up overwriting the input and result.

How do I prevent pseudoregisters from allocating AX?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions