eight_bit_computer.operations.noop_op module

The NOOP operation.

Does nothing for one micro cycle.

eight_bit_computer.operations.noop_op.generate_microcode_templates()[source]

Generate microcode for the NOOP operation.

Returns:DataTemplates for all the NOOP microcode.
Return type:list(DataTemplate)
eight_bit_computer.operations.noop_op.generate_instruction_byte_bitdefs()[source]

Generate bitdefs to specify the NOOP instruction.

Returns:Bitdefs that make up the instruction_byte
Return type:list(str)
eight_bit_computer.operations.noop_op.parse_line(line)[source]

Parse a line of assembly code to create machine code byte templates.

If a line is not identifiably an NOOP assembly line, return an empty list instead.

Parameters:line (str) – Assembly line to be parsed.
Returns:List of instruction byte template dictionaries or an empty list.
Return type:list(dict)