def save_used_registers(self):
used = self.used_registers[:]<EOL>del self.used_registers[:]<EOL>self.used_registers_stack.append(used[:])<EOL>used.sort()<EOL>for reg in used:<EOL><INDENT>self.newline_text("<STR_LIT>" % SharedData.REGISTERS[reg], True)<EOL><DEDENT>self.free_registers.extend(used)<EOL>self.free_registers.sort(reverse = True)<EOL>
Pushes all used working registers before function call