Move assembler state into shared struct
Gather immediate values during assembly