microprobe.code.address.Address

class Address(base_address: Variable | str | None = None, displacement: int = 0)[source]

Bases: object

Class to represent an address.

__init__(base_address: Variable | str | None = None, displacement: int = 0)[source]
Parameters:
  • base_address – (Default value = None)

  • displacement – (Default value = 0)

Methods

__init__([base_address, displacement])

param base_address:

(Default value = None)

check_alignment(align)

Check if the address is aligned to align

copy()

Returns a copy of the address.

Attributes

base_address

Base address of the address (str)

displacement

Displacement of the address (int)




property base_address: Variable | str | None

Base address of the address (str)

property displacement

Displacement of the address (int)

check_alignment(align: int)[source]

Check if the address is aligned to align

copy()[source]

Returns a copy of the address.