Added WDM #$02 to allow character input

This commit is contained in:
Andrew Jacobs 2018-06-18 13:53:34 +01:00
parent 998b7a35cf
commit 00d7348482
2 changed files with 3 additions and 0 deletions

View File

@ -1786,6 +1786,7 @@ private:
switch (getByte(ea)) {
case 0x01: cout << (char) a.b; break;
case 0x02: cin >> a.b; break;
case 0xff: stopped = true; break;
}
cycles += 3;

View File

@ -176,6 +176,8 @@ int main(int argc, char **argv)
QueryPerformanceFrequency(&freq);
QueryPerformanceCounter(&start);
cin.unsetf(ios_base::skipws);
#else
timespec start, end;