riscemu.types.simple_instruction module

class riscemu.types.simple_instruction.SimpleInstruction(name: str, args: Union[Tuple[()], Tuple[str], Tuple[str, str], Tuple[str, str, str]], context: InstructionContext, addr: int)

Bases: Instruction

__init__(name: str, args: Union[Tuple[()], Tuple[str], Tuple[str, str], Tuple[str, str, str]], context: InstructionContext, addr: int)
name: str
args: tuple
property addr: int
get_imm(num: int) Immediate

parse and get immediate argument

get_reg(num: int) str

parse and get an register argument