From 9f1d80cd9eace9fdd8ea93936baa254e899e128c Mon Sep 17 00:00:00 2001 From: Persson-dev Date: Fri, 13 Dec 2024 16:04:29 +0100 Subject: [PATCH] align hexa output --- src/IO.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IO.cpp b/src/IO.cpp index 852a2d3..b98ce77 100644 --- a/src/IO.cpp +++ b/src/IO.cpp @@ -100,7 +100,7 @@ void OutputFileLogisim(BinaryData& a_Data, const std::string& fileName, const st if (cursor % 8 == 0) { file << std::setfill('0') << std::setw(4) << std::hex << cursor << std::dec << ": "; } - file << std::hex << number << std::dec << (((cursor + 1) % 8 == 0) ? "\n" : " "); + file << std::setfill('0') << std::setw(8) << std::hex << number << std::dec << (((cursor + 1) % 8 == 0) ? "\n" : " "); cursor++; } } \ No newline at end of file