From 979403c6f624aab26e5ce5c619b2581ab688e521 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 14 Mar 2015 19:24:56 -0700 Subject: 917 --- cpp/010vm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cpp/010vm') 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::iterator p = Memory.begin(); p != Memory.end(); ++p) { + cout << p->first << ": " << p->second << '\n'; + } +} -- cgit 1.4.1-2-gfad0