eight_bit_computer.operations.jump_if_overflow_flag module

JUMP_IF_OVERFLOW_FLAG operation

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

Generate microcode for all the JUMP_IF_OVERFLOW_FLAG instructions.

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

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

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