Replaced ircode variables with registers in each

Now to put all the ir code together and figure out the load/stores