mirror of
https://github.com/andrew-jacobs/emu816.git
synced 2024-12-22 09:29:21 +00:00
Added WDM #$02 to allow character input
This commit is contained in:
parent
998b7a35cf
commit
00d7348482
1
emu816.h
1
emu816.h
@ -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;
|
||||
|
@ -176,6 +176,8 @@ int main(int argc, char **argv)
|
||||
|
||||
QueryPerformanceFrequency(&freq);
|
||||
QueryPerformanceCounter(&start);
|
||||
|
||||
cin.unsetf(ios_base::skipws);
|
||||
#else
|
||||
timespec start, end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user