backend produces valid vhdl code

backend produces valid vhdl code for a subset of the instructions
divided nextstatelogic and stuff, keep variables

now unused variables are stored, this allows a better synthesability