Well fixed the obvious reason indexed writes were broken.

Still doesn't work as it requires 5 of the 6 registers to be allocated...