eight_bit_computer.operations.add module¶
ADD Operation
-
eight_bit_computer.operations.add.
generate_microcode_templates
()[source]¶ Generate microcode for all the ADD instructions.
Returns: DataTemplates for all the ADD instructions. Return type: list(DataTemplate)
-
eight_bit_computer.operations.add.
parse_line
(line)[source]¶ Parse a line of assembly code to create machine code byte templates.
If a line is not identifiably a ADD 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)