From dc7e55d2798c1530fc301b232ce01d032fb9935f Mon Sep 17 00:00:00 2001 From: alekseiplusplus Date: Thu, 7 Dec 2023 18:28:47 +1100 Subject: FIXED THAT BUG. --- log/log-readable.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'log') diff --git a/log/log-readable.cpp b/log/log-readable.cpp index e110cdc..559d7e2 100644 --- a/log/log-readable.cpp +++ b/log/log-readable.cpp @@ -28,7 +28,7 @@ int main() y.erase(0,1); Convert[x] = y; - cout << x << " : " << Convert[x] << endl; + //cout << x << " : " << Convert[x] << endl; } RomLine.close(); @@ -42,7 +42,9 @@ int main() { string pc; string t; + #define GobbleDelimiter Log >> t; Output << " : " + // Time Counter Log >> t; Output << t; GobbleDelimiter; // Program counter @@ -53,14 +55,13 @@ int main() Log >> t; Output << t; GobbleDelimiter; // Y Log >> t; Output << t; GobbleDelimiter; - // Flags for( ) + // Flags for (int i = 0; i < 8; i++) { char c; Log >> c; Output << c; } GobbleDelimiter; - //Log >> t; Output << t; GobbleDelimiter; // Stack Pointer Log >> t; Output << t; // If a mapping exists, print out the program counter and line code. @@ -69,7 +70,8 @@ int main() Output << " " << s; } // Otherwise, don't do anything. - catch (out_of_range) { } + catch (out_of_range) { + } // Newline Output << endl; } -- cgit v1.2.3