@@ -0,0 +1,591 @@
+# coding: utf-8%0A%0Afrom enum import Enum%0A%0A%0Aclass OP(Enum):%0A    '''OP code'''%0A%0A    halt = 0x0000%0A    jmp = 0x0001%0A    movir = 0x0010%0A    movrr = 0x0011%0A%0A    movrm = 0x0100%0A    movmr = 0x0101%0A    movim = 0x0110%0A    movmi = 0x0111%0A%0A    add = 0x1000%0A    sub = 0x1001%0A    and_ = 0x1010%0A    or_ = 0x1011%0A%0A    je = 0x1100%0A    jne = 0x1101%0A    jg = 0x1110%0A    jl = 0x1111%0A%0A%0Aclass Registers(Enum):%0A    '''Programmer viable registers.'''%0A%0A    ax = 0x00%0A    cx = 0x01%0A    dx = 0x10%0A    bx = 0x11%0A%0A%0Aclass SPRegisters(Enum):%0A    '''Special purpose registers.'''%0A%0A    PC = 0x00%0A    ACC = 0x01%0A    IR = 0x10%0A

Add constants.