def _write_APSR(self, apsr):
V = Operators.EXTRACT(apsr, <NUM_LIT>, <NUM_LIT:1>)<EOL>C = Operators.EXTRACT(apsr, <NUM_LIT>, <NUM_LIT:1>)<EOL>Z = Operators.EXTRACT(apsr, <NUM_LIT:30>, <NUM_LIT:1>)<EOL>N = Operators.EXTRACT(apsr, <NUM_LIT>, <NUM_LIT:1>)<EOL>self.write('<STR_LIT>', V)<EOL>self.write('<STR_LIT>', C)<EOL>self.write('<STR_LIT>', Z)<EOL>self.write('<STR_LIT>', N)<EOL>
Auxiliary function - Writes flags from a full APSR (only 4 msb used)