From c7c531ce16fe66bf9f3bcb04ea9294d50a41e348 Mon Sep 17 00:00:00 2001 From: bd Date: Thu, 17 Apr 2025 17:20:48 -0400 Subject: HALT instruction... but it voids future stages' instructions --- gui/worker.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gui') diff --git a/gui/worker.cc b/gui/worker.cc index 08503c9..defec46 100644 --- a/gui/worker.cc +++ b/gui/worker.cc @@ -33,6 +33,8 @@ void Worker::doWork() p.push_back(0b00000000000000000000000110100110); p.push_back(0b00000000000000000000000111100110); p.push_back(0b00000000000000000000001000100110); + p.push_back(0b00000000000000000000000000101110); + p.push_back(0b00000000000000000000000000101110); p.push_back(0b00000000000000000000000000010000); // p.push_back(0b00000000000000000010100010001101); @@ -118,7 +120,7 @@ void Worker::runSteps(int steps) void Worker::runStep() { qDebug() << "Running for 1 step "; - this->ct->advance(WAIT); + this->ct->run_for(1); emit dram_storage(this->d->view(0, 256)); emit cache_storage(this->c->view(24, 8)); emit register_storage(this->ct->get_gprs()); -- cgit v1.2.3