1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-11-02 18:16:08 +00:00

The actual work begins: starts implementing 65816 micro-ops.

This commit is contained in:
Thomas Harte
2020-09-29 18:42:07 -04:00
parent ef1a514785
commit 78b3ec4b10
5 changed files with 134 additions and 32 deletions

View File

@@ -988,6 +988,10 @@ ProcessorStorage::ProcessorStorage() {
constructor.set_exception_generator(&ProcessorStorageConstructor::stack_exception);
constructor.install_fetch_decode_execute();
// Find any OperationMoveToNextProgram.
next_op_ = micro_ops_.data();
while(*next_op_ != OperationMoveToNextProgram) ++next_op_;
#ifndef NDEBUG
assert(micro_ops_.size() < 65536);
printf("Generated %zd micro-ops in total; covered %d opcodes\n", micro_ops_.size(), constructor.opcode);