eight_bit_computer.operations.nand_op module

NAND Operation

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

Generate microcode for all the NAND instructions.

Returns:DataTemplates for all the NAND instructions.
Return type:list(DataTemplate)
eight_bit_computer.operations.nand_op.parse_line(line)[source]

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

If a line is not identifiably a NAND 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)