eight_bit_computer.operations.jump_if_gte_acc_op module¶
The JUMP_IF_GTE_ACC operation.
Sets PC (jumps) to a constant if the module passed as an argument is greater than or equal to the value in ACC.
This operation will generate and store (clobber) ALU flags.
-
eight_bit_computer.operations.jump_if_gte_acc_op.
generate_microcode_templates
()[source]¶ Generate microcode for all the JUMP_IF_GTE_ACC operations.
Returns: DataTemplates for all the JUMP_IF_GTE_ACC microcode. Return type: list(DataTemplate)
-
eight_bit_computer.operations.jump_if_gte_acc_op.
parse_line
(line)[source]¶ Parse a line of assembly code to create machine code byte templates.
If a line is not identifiably an JUMP_IF_GTE_ACC assembly line, return an empty list instead.
Parameters: line (str) – Assembly line to be parsed. Returns: List of instruction byte template dictionaries or an empty list. Return type: list(dict)