def print_regs( self, per_row=6 ): RegisterFile.print_regs( self, per_row ) print '%s%s%s%s' % ( 'N' if self.state.N else '-', 'Z' if self.state.Z else '-', 'C' if self.state.C else '-', 'V' if self.state.V else '-' )
def print_regs(self, per_row=6): RegisterFile.print_regs(self, per_row) print '%s%s%s%s' % ('N' if self.state.N else '-', 'Z' if self.state.Z else '-', 'C' if self.state.C else '-', 'V' if self.state.V else '-')