lc-3-2 / lc32sim

LC-3.2 simulator
0 stars 0 forks source link

Add Performance Counter #32

Closed ammrat13 closed 1 year ago

ammrat13 commented 1 year ago

Add a counter for the number of instructions that have been executed (modulo 2**32). This would help in implementing the times system call for newlib.

ammrat13 commented 1 year ago

Probably fold this into #30. If we're specifying a high-resolution timer, we may as well also specify the performance counters.

ammrat13 commented 1 year ago

This is not needed. The times system call returns milliseconds, not clock ticks.