SirCmpwn

Untitled

May 25th, 2012
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. private void SkipIfChain()
  2. {
  3. byte opcode;
  4. do
  5. {
  6. cycles--;
  7. ushort instruction = Memory[PC++];
  8. opcode = (byte)(instruction & 0x1F);
  9. byte valueB = (byte)((instruction & 0x3E0) >> 5);
  10. byte valueA = (byte)((instruction & 0xFC00) >> 10);
  11. ushort SP_old = SP;
  12. Get(valueA);
  13. Get(valueB);
  14. SP = SP_old;
  15. } while (opcode >= 0x10 && opcode <= 0x17);
  16. }
Advertisement
Add Comment
Please, Sign In to add comment