From 65361948ca7975553757a0e0df4ac7352413044c Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 14 May 2015 16:04:45 -0700 Subject: 1376 - update github docs --- html/027debug.cc.html | 49 +++++++++++++++++++++++++++++++++++++------------ 1 file changed, 37 insertions(+), 12 deletions(-) (limited to 'html/027debug.cc.html') diff --git a/html/027debug.cc.html b/html/027debug.cc.html index b676e8dc..802ddd67 100644 --- a/html/027debug.cc.html +++ b/html/027debug.cc.html @@ -2,7 +2,7 @@ -Mu - 027debug.cc +~/Desktop/s/mu/027debug.cc @@ -37,16 +37,18 @@ _PRINT, Recipe_number["$print"] = _PRINT; :(before "End Primitive Recipe Implementations") case _PRINT: { - if (isa_literal(current_instruction().ingredients[0])) { - trace("run") << "$print: " << current_instruction().ingredients[0].name; - cout << current_instruction().ingredients[0].name; - break; - } - vector<long long int> result(read_memory(current_instruction().ingredients[0])); - for (index_t i = 0; i < result.size(); ++i) { - trace("run") << "$print: " << result[i]; - if (i > 0) cout << " "; - cout << result[i]; + for (index_t i = 0; i < ingredients.size(); ++i) { + if (isa_literal(current_instruction().ingredients.at(i))) { + trace("run") << "$print: " << current_instruction().ingredients.at(i).name; + cout << current_instruction().ingredients.at(i).name; + } + else { + for (index_t j = 0; j < ingredients.at(i).size(); ++j) { + trace("run") << "$print: " << ingredients.at(i).at(j); + if (j > 0) cout << " "; + cout << ingredients.at(i).at(j); + } + } } break; } @@ -57,7 +59,10 @@ _START_TRACING, Recipe_number["$start-tracing"] = _START_TRACING; :(before "End Primitive Recipe Implementations") case _START_TRACING: { - Trace_stream->dump_layer = "all"; + if (current_instruction().ingredients.empty()) + Trace_stream->dump_layer = "all"; + else + Trace_stream->dump_layer = current_instruction().ingredients.at(0).name; //? cout << Trace_stream << ": " << Trace_stream->dump_layer << '\n'; //? 1 break; } @@ -81,6 +86,26 @@ case _EXIT: { exit(0); break; } + +:(before "End Primitive Recipe Declarations") +_DUMP_TRACE, +:(before "End Primitive Recipe Numbers") +Recipe_number["$dump-trace"] = _DUMP_TRACE; +:(before "End Primitive Recipe Implementations") +case _DUMP_TRACE: { + DUMP(""); + break; +} + +:(before "End Primitive Recipe Declarations") +_DUMP_MEMORY, +:(before "End Primitive Recipe Numbers") +Recipe_number["$dump-memory"] = _DUMP_MEMORY; +:(before "End Primitive Recipe Implementations") +case _DUMP_MEMORY: { + dump_memory(); + break; +} -- cgit 1.4.1-2-gfad0