eight_bit_computer.operations.halt_op module¶
The HALT operation.
Halts execution of the computer by stopping the clock.
-
eight_bit_computer.operations.halt_op.
generate_microcode_templates
()[source]¶ Generate microcode for the HALT operation.
Returns: DataTemplates for all the HALT microcode. Return type: list(DataTemplate)
-
eight_bit_computer.operations.halt_op.
generate_instruction_byte_bitdefs
()[source]¶ Generate bitdefs to specify the HALT instruction.
Returns: Bitdefs that make up the instruction_byte Return type: list(str)
-
eight_bit_computer.operations.halt_op.
parse_line
(line)[source]¶ Parse a line of assembly code to create machine code byte templates.
If a line is not identifiably an HALT 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)