microprobe.target.isa.GenericISA
- class GenericISA(name: str, descr: str, path: str, ins: Dict[str, 'InstructionType'], regs: Dict[str, 'Register'], comparators, generators)[source]
Bases:
ISAClass to represent a generic Instruction Set Architecture (ISA).
- __init__(name: str, descr: str, path: str, ins: Dict[str, 'InstructionType'], regs: Dict[str, 'Register'], comparators, generators)[source]
- Parameters:
name
descr
ins
regs
comparators
generators
Methods
__init__(name, descr, path, ins, regs, ...)add_to_register(register, value)branch_unconditional_relative(source, target)compare_and_branch(val1, val2, cond, target, ...)get_context([variable, tmpl_path, complete])get_dat(**kwargs)get_register_for_address_arithmetic(context)get_register_for_float_arithmetic(context)load(reg, address, context)load_float(reg, address, context)negate_register(reg, context)new_instruction(name)nop()normalize_asm(mnemonic, operands)randomize_register(register[, seed])set_context([variable, tmpl_path, complete])set_register(reg, value, context)set_register_bits(register, value, mask, ...)set_register_to_address(reg, address, context)set_target(target)store_decimal(address, length, value, context)store_float(reg, address, context)store_integer(reg, address, length, context)Attributes
ISA description (
str).ISA instructions (
dictmapping strings toInstructionType).ISA name (
str).Path to definition (
str).Associated target object (
Target).
- property address_registers
- property float_registers
- property flag_registers
- property instructions
ISA instructions (
dictmapping strings toInstructionType).
- property scratch_var
- property registers
- property scratch_registers
- property control_registers
- compare_and_branch(val1, val2, cond, target, context: Context)
- Parameters:
val1
val2
cond
target
context
- property context_var
- nop()
- set_register_bits(register, value, mask, shift, context: Context)
- Parameters:
register
value
mask
shift
context