diff --git a/emu816.cc b/emu816.cc index 62f9b1f..af861ad 100644 --- a/emu816.cc +++ b/emu816.cc @@ -19,10 +19,6 @@ // http://creativecommons.org/licenses/by-nc-sa/4.0/ //------------------------------------------------------------------------------ -// TODO: decimal mode - -#include "emu816.h" - #ifdef CHIPKIT # include "WProgram.h" #else @@ -32,6 +28,8 @@ using namespace std; #endif +#include "emu816.h" + union emu816::FLAGS emu816::p; emu816::Bit emu816::e; diff --git a/emu816.h b/emu816.h index 761753c..0afdbd3 100644 --- a/emu816.h +++ b/emu816.h @@ -1785,6 +1785,7 @@ private: TRACE("WDM"); switch (getByte(ea)) { + case 0x01: cout << (char) a.b; break; case 0xff: stopped = true; break; } cycles += 3;