eight_bit_computer.operations.or_op module¶
OR Operation
-
eight_bit_computer.operations.or_op.
generate_microcode_templates
()[source]¶ Generate microcode for all the OR instructions.
Returns: DataTemplates for all the OR instructions. Return type: list(DataTemplate)
-
eight_bit_computer.operations.or_op.
parse_line
(line)[source]¶ Parse a line of assembly code to create machine code byte templates.
If a line is not identifiably a OR assembly line, return an empty list instead.
Parameters: line (str) – Assembly line to be parsed. Returns: List of machine code byte template dictionaries or an empty list. Return type: list(dict)