jemul8 icon indicating copy to clipboard operation
jemul8 copied to clipboard

Define a clean public API

Open asmblah opened this issue 11 years ago • 1 comments

The public API should be derived via acceptance tests. For example, emulator.run() should return a Promise which should be resolved when the next HLT instruction is executed. Resuming the emulator (by calling .run() again) should return another Promise, and so on.

Work started in feature/acceptance (https://github.com/asmblah/jemul8/tree/feature/acceptance)

asmblah avatar May 01 '13 21:05 asmblah

feature/acceptance branch now contains a wrapper around the legacy API and a simple acceptance test which instantiates the emulator, writes some NOPs and a HLT to memory and executes them, using the new Promises-based API to detect when the HLT instruction is reached. This should allow smoother, faster BDD testing of the emulator's operation.

asmblah avatar May 03 '13 20:05 asmblah