BMR, Use your Brain, Semi/Semi2k.

This commit is contained in:
Marcel Keller
2019-04-30 17:24:11 +10:00
parent 9cde9548d2
commit b5d8123ae0
214 changed files with 4233 additions and 1550 deletions

View File

@@ -18,6 +18,7 @@ enum BreakType {
TIME_BREAK,
DONE_BREAK,
CAP_BREAK,
CLEANING_BREAK,
};
template <class T> class Processor;
@@ -59,9 +60,8 @@ class Program
unsigned direct_mem(RegType reg_type) const
{ return max_mem[reg_type]; }
// Execute this program, updateing the processor and memory
// and streams pointing to the triples etc
BreakType execute(Processor<T>& Proc, int PC = -1) const;
template<class U>
BreakType execute(Processor<T>& Proc, U& dynamic_memory, int PC = -1) const;
bool done(Processor<T>& Proc) const { return Proc.PC >= p.size(); }