Advertisement
AbraaoAllysson

ALUOP

May 16th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.16 KB | None | 0 0
  1. int ALUOP(int opcode)
  2. {
  3.     switch(opcode)
  4.     {
  5.         case 1:
  6.         case 2: return 0b00;
  7.         case 3:
  8.         case 4:
  9.         case 5: return 0b01;
  10.         default: retunr 0b10;
  11.        
  12.     }
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement