module legv8.execr


function immu2int

immu2int(immu: str) → int

Converts an immediate value into an integer

Args:

  • immu (str): Immediate value (e.g. #10, 0x03, b00101)

Returns:

  • int: Value stored in immediate

function execr

execr(mem, instr: dict)

Executes the instruction on the simulator state for the LEGv8 ISA

Args:

  • mem (legv8.mem): ISA memory class
  • instr (dict[str, str]): Decoded instruction

Raises:

  • Exception: If an unsupported instruction is executed

This file was automatically generated via lazydocs.