pattern load and save works

This commit is contained in:
2020-11-27 14:19:38 +01:00
parent c043e74c07
commit 8e773c97dd
2 changed files with 4 additions and 5 deletions

View File

@ -174,8 +174,8 @@ void Pattern::save(const std::string &fname) {
std::ostringstream os;
// pattern word
for (uint32_t i = pat->limits[0]; i <= pat->limits[1]; ++i) {
output_file << "patword [" << ToStringHex(i, 4) << ", "
<< ToStringHex(pat->word[i], 16) << "]" << std::endl;
output_file << "patword " << ToStringHex(i, 4) << " "
<< ToStringHex(pat->word[i], 16) << std::endl;
}
// patioctrl