CPU Emulation and locking to a specific clock speed

前端 未结 7 1388
臣服心动
臣服心动 2020-12-04 14:58

If you had read my other question, you\'ll know I\'ve spent this weekend putting together a 6502 CPU emulator as a programming exercise.

The CPU emulator is mostly c

7条回答
  •  天涯浪人
    2020-12-04 15:17

    Another option is available if audio emulation is implemented, and if audio output is tied to the system/CPU clock. In particular I know that this is the case with the 8-bit Apple ][ computers.

    Usually sound is generated in buffers of a fixed size (which is a fixed time), so operation (generation of data etc) of these buffers can be tied to CPU throughput via synchronization primitives.

提交回复
热议问题