Advertisement
tyler569

cpu input

Aug 24th, 2018
405
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1.     c.memory = {
  2.         MOV + (1 << 4) + (20 << 8),                 // mov r1, 20
  3.         OUT + (1 << 4),                             // out r1
  4.         ADD + (1 << 4) + (1 << 8) + (1 << 12),      // add r1, r1, r1
  5.         OUT + (1 << 4),                             // out r1
  6.         HLT,                                        // hlt
  7.     };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement