2 ms·
It's possible to do something like that in C. In C++, you can even do some template magic to create all the appropriate functions for each opcode based on somet
by grapeshot 13y ago
It's possible to do something like that in C. In C++, you can even do some template magic to create all the appropriate functions for each opcode based on something like the original instruction decode ROM. Brilliant and short code, but very difficult to write in the first place. Here's a very apropos example of this technique as applied to the 6502.
http://www.youtube.com/watch?v=y71lli8MS8s http://www.youtube.com/watch?v=y71lli8MS8s