Skip to content

Chapter6 - The maximum value of the register #48

@GGGGGHT

Description

@GGGGGHT

Register 2 doesn’t have a minimum value, and the umax_value shown here in decimal corresponds to 0xFFFFFFFF, which is the largest value that can be held in an 8-byte register. In other words, at this point the register could hold any of its possible values.
In instruction 4, the contents of Register 2 are copied into Register 3, and then instruction 5 adds one to that value. Therefore, Register 3 could have any value that’s 1 or greater. You can see this in the state information for Register 3, which has umin_value set to 1, and a umax_value of 0xFFFFFFFF.

The maximum value that 8 bytes can represent should be 0xFFFFFFFFFFFFFFFF, not 0xFFFFFFFF. I'm not sure if my understanding is wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions