added ADDI and BEQ support (BEQ not tested)