2 Commits
v1.5 ... v1.6

Author SHA1 Message Date
99a7e32269 update to v1.6 2024-12-07 12:36:11 +01:00
348f7bf720 fix logisim output 2024-12-07 12:35:53 +01:00
2 changed files with 3 additions and 7 deletions

View File

@@ -99,12 +99,8 @@ void OutputFileLogisim(BinaryData& a_Data, const std::string& fileName, const st
for (std::uint32_t number : a_Data) { for (std::uint32_t number : a_Data) {
if (cursor % 8 == 0) { if (cursor % 8 == 0) {
file << std::setfill('0') << std::setw(4) << std::hex << cursor << std::dec << ": "; file << std::setfill('0') << std::setw(4) << std::hex << cursor << std::dec << ": ";
file << std::bitset<8>(number >> 24) << " " << std::bitset<8>(number >> 16) << " " << std::bitset<8>(number >> 8) << " "
<< std::bitset<8>(number) << " ";
} else {
file << std::bitset<8>(number >> 24) << " " << std::bitset<8>(number >> 16) << " " << std::bitset<8>(number >> 8) << " "
<< std::bitset<8>(number) << "\n";
} }
cursor += 4; file << std::hex << number << std::dec << (((cursor + 1) % 8 == 0) ? "\n" : " ");
cursor++;
} }
} }

View File

@@ -3,7 +3,7 @@
#include "IO.h" #include "IO.h"
#define ASSEMBLEUR_VERSION "1.5" #define ASSEMBLEUR_VERSION "1.6"
int main(int argc, char** argv) { int main(int argc, char** argv) {