MOAL.execution.machine package¶
Submodules¶
MOAL.execution.machine.opcodes module¶
-
class
MOAL.execution.machine.opcodes.
OpCode
(code, name, description, assembly)[source]¶ -
__init__
(code, name, description, assembly)¶ Creates a code with typical metadata, and the actual assembly code to run it.
- Args:
code (string): the opcode name (string): the nice (semantic) name, e.g. STOP, POP_TOP, etc... description (string): an informal detailed description assembly (list): a list of each instruction in
sequence when this opcode is called.- Returns:
- None
-
call
()¶
-
read_external
(code=[])¶ Reads an ‘external’ Python implementation specific opcode. Try loading a pyc file in! Args:
code (string): a real python opcode.- Returns:
- None
-