optimize SRAM reads

Use Math.imul for the half-word + word mirroring.