RFC: Saving and restoring the assembler state during assembly