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:
parent
604bb50adf
commit
18bb90329a
@ -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
|
||||
|
@ -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
Loading…
Reference in New Issue
Block a user