Make "demo2c.elf" work.
Posted on 2005-08-25 00:00:00
Sorted a bit the placement of the "ticking" function today. This function is called after each instruction is executed to increment counters, check interrupts based on these counters, check breakpoints, invalid instructions, etc. It was in the recompiler class for some reason before and I moved it into the main virtual machine singleton class.

This way, I can increment a cycle counter to eventually make some check to set or reset the v-sync and h-sync bits in the CSR. Just wondering what would be the best way to maintain this counter right now... Incremeting it by one each time the tick function is called and checking the value to set the bits would work for now. But it'd surely screw up if we'd wanted to implement some dead loop skipping mechanism later on. And I musn't forget about the COP0 Count register too... Guess I'll ponder a little bit more.