module legv8.decode
function findSymbols
findSymbols(imem: list) → dict[str, int]
Find the symbols in the instruction memory, e.g. main:
Args:
imem
(list[str]): Instruction memory
Returns:
dict[str, int]
: Dictionary of symbols corresponding with their line numbers
function decode
decode(pc: int, assembly: str, sym: dict) → dict[str, str]
Decodes each instruction into a simpler format, replacing symbols, register aliases, and removing comments for the LEGv8 ISA
Args:
pc
(int): Program counterassembly
(str): Instruction to decodesym
(dict[str, int]): Symbol dictionary
Returns:
dict[str, str]
: Decoded instruction
This file was automatically generated via lazydocs.