Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void SkipIfChain()
- {
- byte opcode;
- do
- {
- cycles--;
- ushort instruction = Memory[PC++];
- opcode = (byte)(instruction & 0x1F);
- byte valueB = (byte)((instruction & 0x3E0) >> 5);
- byte valueA = (byte)((instruction & 0xFC00) >> 10);
- ushort SP_old = SP;
- Get(valueA);
- Get(valueB);
- SP = SP_old;
- } while (opcode >= 0x10 && opcode <= 0x17);
- }
Advertisement
Add Comment
Please, Sign In to add comment