test CPU instructions

test CPU instructions

(Sorry if I posted this in the wrong place, I couldnt find a better place to post this).Iam working on a x86 emulator written in JavaScript, and I would like to have some tests on this emulator to make sure the validity of the results for instructions. Does anyone know if there is a set of instructions that checks the instructions for correctness with the x86 standard?


3 posts / novo 0
Último post
Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizações.

Processor will throwinvalid opcode exception.

There are no such instructions.

You can try coding your emulator based on instruction behavior description available in Intel documentation, or you could try writing a test case for the emulation of each instruction and verify the results by executing the same instruction on the CPU (that would require a lot of work though).

-- Regards, Igor Levicki If you find my post helpfull, please rate it and/or select it as a best answer where applies. Thank you.

Deixar um comentário

Faça login para adicionar um comentário. Não é membro? Inscreva-se hoje mesmo!