Added reimplementation of div and mod instructions.