Hello everybody, Im new here and Im doing a new n64 emulator that runs fully on interpreter mode (I know it's slow). Im planning to emulate every little thing on n64, including a fully tottally emulated main processor (r4300i); when doing that funtion that calls the opcodes I'm planning to use a huge switch instead of a function pointer table beacuse I read it can get faster under some circunstances... these circunstances are basically, use very little code on the case labels and arrange the cases in probability order...
Thus, i need to know what are the most used opcodes, or what are the probability of each opcode to appear... is there any kind of disassembler that says the number of times each opcode appeared on the rom? if not, is there any good disassembler open source that I can easily modify the code to do that?
thankx for the help.
Thus, i need to know what are the most used opcodes, or what are the probability of each opcode to appear... is there any kind of disassembler that says the number of times each opcode appeared on the rom? if not, is there any good disassembler open source that I can easily modify the code to do that?
thankx for the help.