riscemu.types.instruction_context module
- class riscemu.types.instruction_context.InstructionContext
Bases:
object
- __init__()
- labels: Dict[str, int]
This dictionary maps all labels to their relative position of the instruction block
- numbered_labels: Dict[str, List[int]]
This dictionary maps numbered labels (which can occur multiple times) to a list of (block-relative) addresses where the label was placed
- base_address: int
The address where the instruction block is placed
- global_symbol_dict: Dict[str, int]
A reference to the MMU’s global symbol dictionary for access to global symbols
- resolve_label(symbol: str, address_at: Optional[int] = None) Optional[int]