Guest User

Untitled

a guest
Aug 8th, 2014
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.16 KB | None | 0 0
  1. uint4_t ram[...];
  2. uint4_t regs[16];
  3.  
  4. void emulator()
  5. {
  6.     while (true) {
  7.         uint4_t r1 = ram[pc++];
  8.         uint4_t r2 = ram[pc++];
  9.         r1 = ram[pc + r1 + r2 * 4];
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment