Пример #1
0
 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 '-'
   )
Пример #2
0
 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 '-')