Ahmes flags rewrite; fixed missing currentInstruction