public void All_prefixed_instructions_are_implemented()
 {
     for (ushort opcode = 0x00; opcode <= 0xFF; opcode++)
     {
         Assert.DoesNotThrow(() => _instructionDecoder.DecodeInstruction((byte)opcode, true));
     }
 }
Ejemplo n.º 2
0
        public void All_non_forbidden_non_prefixed_instructions_are_implemented()
        {
            for (ushort opcode = 0x00; opcode <= 0xFF; opcode++)
            {
                if (opcode == 0xD3 || opcode == 0xE3 || opcode == 0xE4 || opcode == 0xF4 ||
                    opcode == 0xDB || opcode == 0xEB || opcode == 0xEC || opcode == 0xFC ||
                    opcode == 0xDD || opcode == 0xED || opcode == 0xFD)
                {
                    continue;
                }

                Assert.DoesNotThrow(() => _instructionDecoder.DecodeInstruction((byte)opcode, false));
            }
        }