diff options
Diffstat (limited to 'cpp/010vm')
-rw-r--r-- | cpp/010vm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/010vm b/cpp/010vm index ee8be9cb..57f0be1f 100644 --- a/cpp/010vm +++ b/cpp/010vm @@ -183,3 +183,9 @@ string slurp_until(istream& in, char delim) { } return out.str(); } + +void dump_memory() { + for (unordered_map<int, int>::iterator p = Memory.begin(); p != Memory.end(); ++p) { + cout << p->first << ": " << p->second << '\n'; + } +} |