Source code for eight_bit_computer.operations

"""
Operations in the assembly language
"""


[docs]def get_all_operations(): """ Get a list of all the operations in the assembly language Deferring the import to the function so that importing the operations module doesn't mean automatically importing all the operations. Returns: list(module): All the modules that represent operations in the assembly language """ from . import ( and_op, nand_op, or_op, nor_op, xor_op, nxor_op, not_op, add, copy_op, load, store_op, progload_op, progstore_op, push_op, pop_op, set_op, set_zero_op, noop_op, jump, jump_if_lt_acc_op, jump_if_lte_acc_op, jump_if_eq_acc_op, jump_if_gte_acc_op, jump_if_gt_acc_op, jump_if_eq_zero_op, jump_if_positive_flag, jump_if_negative_flag, jump_if_overflow_flag, jump_if_not_overflow_flag, jump_if_underflow_flag, jump_if_not_underflow_flag, jump_if_zero_flag, jump_if_not_zero_flag, call_op, return_op, halt_op, lshift_op, lshiftc_op, incr_op, decr_op, addc_op, sub_op, subb_op, rot_left_op, ) return [ and_op, nand_op, or_op, nor_op, xor_op, nxor_op, not_op, add, copy_op, load, store_op, progload_op, progstore_op, push_op, pop_op, set_op, set_zero_op, noop_op, jump, jump_if_lt_acc_op, jump_if_lte_acc_op, jump_if_eq_acc_op, jump_if_gte_acc_op, jump_if_gt_acc_op, jump_if_eq_zero_op, jump_if_positive_flag, jump_if_negative_flag, jump_if_overflow_flag, jump_if_not_overflow_flag, jump_if_underflow_flag, jump_if_not_underflow_flag, jump_if_zero_flag, jump_if_not_zero_flag, call_op, return_op, halt_op, lshift_op, lshiftc_op, incr_op, decr_op, addc_op, sub_op, subb_op, rot_left_op, ]