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
get_imm(num: int) int

parse and get immediate argument

get_imm_reg(num: int) Tuple[int, str]

parse and get an argument imm(reg)

get_reg(num: int) str

parse and get an register argument