addresser
Addresser : handle addresses management
Addresser
Class for managing addresses.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
program |
Program
|
A backref to the program |
required |
base_address |
AddressT
|
Program's base address |
required |
Attributes:
Name | Type | Description |
---|---|---|
logger |
A logger instance |
|
program |
Program
|
Program reference |
base_address |
AddressT
|
Program base address |
Source code in quokka/addresser.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
|
__init__(program, base_address)
Constructor
Source code in quokka/addresser.py
38 39 40 41 42 |
|
absolute(offset)
Converts an offset in the file to an absolute address
Parameters:
Name | Type | Description | Default |
---|---|---|---|
offset |
int
|
Offset in the file |
required |
Returns:
Type | Description |
---|---|
AddressT
|
An absolute address |
Source code in quokka/addresser.py
44 45 46 47 48 49 50 51 52 53 |
|
file(offset)
Converts a program offset to a file offset.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
offset |
int
|
A virtual address |
required |
Returns:
Type | Description |
---|---|
int
|
A file offset |
Source code in quokka/addresser.py
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
|