NAME
CPU::x86_64::InstructionWriter::Label - Object representing a jump target in the code
VERSION
version 0.002
DESCRIPTION
Forward-jumps in X86 can be fairly difficult because the instructions are variable length, and depending on how far the jump needs to go, the jump instruction itself can be variable-length which affects the address it jumps to. The InstructionWriter inserts these objects as place holders and then resolves their address later.
ATTRIBUTES
name
The user-readable name of the label
relative_to
The constant or placeholder object representing the start address for the assembled unit in which this label was declared.
offset
The address of this label, relative to 'relative_to'.
CONSTRUCTOR
Use "get_label" in CPU::x86_64::InstructionWriter to create labels.
AUTHOR
Michael Conrad <mike@nrdvana.net>
COPYRIGHT AND LICENSE
This software is copyright (c) 2023 by Michael Conrad.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.