changed some opcodes and func codes. Need to review them all tomorrow and update truth table.