eight_bit_computer.operations.add module

ADD Operation


Generate microcode for all the ADD instructions.

Returns:DataTemplates for all the ADD instructions.
Return type:list(DataTemplate)

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)