opcodes = {
    'ADD': ['0000', '0101'],
    'ADDI': '0101',
    'ADDU': ['0000', '0110'],
    'ADDUI': '0110',
    'ADDC': ['0000', '0111'],
    'ADDCI': '0111',
    'ADDCU': ['0000', '0100'],
    'ADDCUI': '1000',
    'SUB': ['0000', '1001'],
    'SUBI': '1001',
    'CMP': ['0000', '1011'],
    'CMPI': '1011',
    'AND': ['0000', '0001'],
    'OR': ['0000', '0010'],
    'XOR': ['0000', '0011'],
    'NOT': ['0000', '1111'],
    'LSH': ['1000', '0100'],
    'LSHI': '1000',
    'RSH': ['0100', '1111'],
    'RSHI': ['1000', '0111'],
    'ALSH': ['1000', '0111'],
    'ARSH': ['1000', '1000'],
    'WAIT': ['0000', '0000'],
    'MOV': ['0000', '1101'],
    'LOAD': ['0100', '0000'],
    'STOR': ['0100', '0100'],
    'Bcond':'1100',
    'BEQ':'',
    'BL':'',
    'JMP':'',
    'BOF':'',
    'ENC1': ['1000', '1100'],
    'ENC2': ['1000', '1101'],
    'TRANSMIT': ['1000', '1111'],
    'LOADDX': ['0100', '1010'],
    'LOADDY': ['0100', '1110'],
    'READPP': ['0100','0001']
} 

conditions = {
    'BEQ': '0000',
    'BL': '1100', 
    'JMP': '1110',
    'BOF': '1011'
}

registers = {
    'R0':  '0000',
    'R1':  '0001',
    'R2':  '0010',
    'R3':  '0011',
    'R4':  '0100',
    'R5':  '0101',
    'R6':  '0110',
    'X':  '0111',
    'Y':  '1000',
    'DX':  '1001',
    'DY': '1010',
    'P1': '1011',
    'P2': '1100',
    'START': '1101',
    'P1SCORE': '1110',
    'P2SCORE': '1111',
}

f7a9c6dae0671ab71681f9ba15d91e6c857a06f5
<mask token>

opcodes = {'ADD': ['0000', '0101'], 'ADDI': '0101', 'ADDU': ['0000', '0110'
    ], 'ADDUI': '0110', 'ADDC': ['0000', '0111'], 'ADDCI': '0111', 'ADDCU':
    ['0000', '0100'], 'ADDCUI': '1000', 'SUB': ['0000', '1001'], 'SUBI':
    '1001', 'CMP': ['0000', '1011'], 'CMPI': '1011', 'AND': ['0000', '0001'
    ], 'OR': ['0000', '0010'], 'XOR': ['0000', '0011'], 'NOT': ['0000',
    '1111'], 'LSH': ['1000', '0100'], 'LSHI': '1000', 'RSH': ['0100',
    '1111'], 'RSHI': ['1000', '0111'], 'ALSH': ['1000', '0111'], 'ARSH': [
    '1000', '1000'], 'WAIT': ['0000', '0000'], 'MOV': ['0000', '1101'],
    'LOAD': ['0100', '0000'], 'STOR': ['0100', '0100'], 'Bcond': '1100',
    'BEQ': '', 'BL': '', 'JMP': '', 'BOF': '', 'ENC1': ['1000', '1100'],
    'ENC2': ['1000', '1101'], 'TRANSMIT': ['1000', '1111'], 'LOADDX': [
    '0100', '1010'], 'LOADDY': ['0100', '1110'], 'READPP': ['0100', '0001']}
conditions = {'BEQ': '0000', 'BL': '1100', 'JMP': '1110', 'BOF': '1011'}
registers = {'R0': '0000', 'R1': '0001', 'R2': '0010', 'R3': '0011', 'R4':
    '0100', 'R5': '0101', 'R6': '0110', 'X': '0111', 'Y': '1000', 'DX':
    '1001', 'DY': '1010', 'P1': '1011', 'P2': '1100', 'START': '1101',
    'P1SCORE': '1110', 'P2SCORE': '1111'}

opcodes = {
    'ADD': ['0000', '0101'],
    'ADDI': '0101',
    'ADDU': ['0000', '0110'],
    'ADDUI': '0110',
    'ADDC': ['0000', '0111'],
    'ADDCI': '0111',
    'ADDCU': ['0000', '0100'],
    'ADDCUI': '1000',
    'SUB': ['0000', '1001'],
    'SUBI': '1001',
    'CMP': ['0000', '1011'],
    'CMPI': '1011',
    'AND': ['0000', '0001'],
    'OR': ['0000', '0010'],
    'XOR': ['0000', '0011'],
    'NOT': ['0000', '1111'],
    'LSH': ['1000', '0100'],
    'LSHI': '1000',
    'RSH': ['0100', '1111'],
    'RSHI': ['1000', '0111'],
    'ALSH': ['1000', '0111'],
    'ARSH': ['1000', '1000'],
    'WAIT': ['0000', '0000'],
    'MOV': ['0000', '1101'],
    'LOAD': ['0100', '0000'],
    'STOR': ['0100', '0100'],
    'Bcond':'1100',
    'BEQ':'',
    'BL':'',
    'JMP':'',
    'BOF':'',
    'ENC1': ['1000', '1100'],
    'ENC2': ['1000', '1101'],
    'TRANSMIT': ['1000', '1111'],
    'LOADDX': ['0100', '1010'],
    'LOADDY': ['0100', '1110'],
    'READPP': ['0100','0001']
} 

conditions = {
    'BEQ': '0000',
    'BL': '1100', 
    'JMP': '1110',
    'BOF': '1011'
}

registers = {
    'R0':  '0000',
    'R1':  '0001',
    'R2':  '0010',
    'R3':  '0011',
    'R4':  '0100',
    'R5':  '0101',
    'R6':  '0110',
    'X':  '0111',
    'Y':  '1000',
    'DX':  '1001',
    'DY': '1010',
    'P1': '1011',
    'P2': '1100',
    'START': '1101',
    'P1SCORE': '1110',
    'P2SCORE': '1111',
}
