1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-28 07:29:45 +00:00

Apparently tStates is decimal. Of course it is.

This commit is contained in:
Thomas Harte 2020-02-26 20:04:55 -05:00
parent 604bb50adf
commit 18bb90329a
3 changed files with 816 additions and 814 deletions

View File

@ -71,6 +71,7 @@ int main(void) {
std::cout << "\t\"state\" : {" << std::endl;
#define OUTPUTnbr(name) std::cout << "\t\t\"" << #name << "\" : " << strtol(name.c_str(), nullptr, 16)
#define OUTPUT10(name) std::cout << "\t\t\"" << #name << "\" : " << name
#define OUTPUT(name) OUTPUTnbr(name) << "," << std::endl
#define OUTPUTb(name) std::cout << "\t\t\"" << #name << "\" : " << ((name == "0") ? "false" : "true") << "," << std::endl
@ -93,7 +94,7 @@ int main(void) {
OUTPUTb(iff2);
OUTPUT(im);
OUTPUTb(halted);
OUTPUTnbr(tStates) << std::endl;
OUTPUT10(tStates) << std::endl;
#undef OUTPUTb
#undef OUTPUT

View File

@ -35,6 +35,7 @@ int main(void) {
std::cout << "\t\"state\" : {" << std::endl;
#define OUTPUTnbr(name) std::cout << "\t\t\"" << #name << "\" : " << strtol(name.c_str(), nullptr, 16)
#define OUTPUT10(name) std::cout << "\t\t\"" << #name << "\" : " << name
#define OUTPUT(name) OUTPUTnbr(name) << "," << std::endl
#define OUTPUTb(name) std::cout << "\t\t\"" << #name << "\" : " << ((name == "0") ? "false" : "true") << "," << std::endl
@ -57,7 +58,7 @@ int main(void) {
OUTPUTb(iff2);
OUTPUT(im);
OUTPUTb(halted);
OUTPUTnbr(tStates) << std::endl;
OUTPUT10(tStates) << std::endl;
#undef OUTPUTb
#undef OUTPUT

File diff suppressed because it is too large Load Diff