/[smarc]/smarc/src/vmachine/alu.cc
ViewVC logotype

Diff of /smarc/src/vmachine/alu.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by misto, Thu Jan 2 17:43:54 2003 UTC revision 1.6 by misto, Fri Jan 24 16:10:24 2003 UTC
# Line 47  void alu::process( instr_word op, PSR &p Line 47  void alu::process( instr_word op, PSR &p
47    
48                  // for computing V,C                  // for computing V,C
49                  arg2 = 0 - arg2 - psr.C;                  arg2 = 0 - arg2 - psr.C;
50          } else if ( op.instr == instr_word::and          } else if ( op.instr == instr_word::_and
51                          || op.instr == instr_word::andcc )                          || op.instr == instr_word::andcc )
52                  res = arg1 & arg2 ;                  res = arg1 & arg2 ;
53          else if ( op.instr == instr_word::or || op.instr == instr_word::orcc )          else if ( op.instr == instr_word::_or || op.instr == instr_word::orcc )
54                  res = arg1 | arg2 ;                  res = arg1 | arg2 ;
55          else if ( op.instr == instr_word::andn          else if ( op.instr == instr_word::andn
56                          || op.instr == instr_word::andncc)                          || op.instr == instr_word::andncc)
57                  res = arg1 & ~arg2 ;                  res = arg1 & ~arg2 ;
58          else if ( op.instr == instr_word::orn || op.instr == instr_word::orncc )          else if ( op.instr == instr_word::orn || op.instr == instr_word::orncc )
59                  res = arg1 | ~arg2 ;                  res = arg1 | ~arg2 ;
60          else if ( op.instr == instr_word::xor || op.instr == instr_word::xorcc )          else if ( op.instr == instr_word::_xor || op.instr == instr_word::xorcc )
61                  res = arg1 ^ arg2 ;                  res = arg1 ^ arg2 ;
62          else if ( op.instr == instr_word::xnor          else if ( op.instr == instr_word::xnor
63                          || op.instr == instr_word::xnorcc )                          || op.instr == instr_word::xnorcc )

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26