".LT", ".NGE", ".LE", ".NGT", ], ) bs_arith = cpu.bs_name( l=6, name={ "ADDU": 0b100001, "SUBU": 0b100011, "OR": 0b100101, "AND": 0b100100, "SLTU": 0b101011, "XOR": 0b100110, "SLT": 0b101010, "SUBU": 0b100011, "NOR": 0b100111, "MOVN": 0b001011, "MOVZ": 0b001010, }, ) bs_shift = cpu.bs_name(l=6, name={"SLL": 0b000000, "SRL": 0b000010, "SRA": 0b000011}) bs_shift1 = cpu.bs_name(l=6, name={"SLLV": 0b000100, "SRLV": 0b000110, "SRAV": 0b000111}) bs_arithfmt = cpu.bs_name(l=6, name={"ADD": 0b000000, "SUB": 0b000001, "MUL": 0b000010, "DIV": 0b000011})
prio = 1 bs_cond = bs_cond_mod(l=4, mn_mod = ['.F', '.UN', '.EQ', '.UEQ', '.OLT', '.ULT', '.OLE', '.ULE', '.SF', '.NGLE', '.SEQ', '.NGL', '.LT', '.NGE', '.LE', '.NGT']) bs_arith = cpu.bs_name(l=6, name={'ADDU':0b100001, 'SUBU':0b100011, 'OR':0b100101, 'AND':0b100100, 'SLTU':0b101011, 'XOR':0b100110, 'SLT':0b101010, 'SUBU':0b100011, 'NOR':0b100111, 'MOVN':0b001011, 'MOVZ':0b001010, }) bs_shift = cpu.bs_name(l=6, name={'SLL':0b000000, 'SRL':0b000010, 'SRA':0b000011, }) bs_shift1 = cpu.bs_name(l=6, name={'SLLV':0b000100, 'SRLV':0b000110, 'SRAV':0b000111, })