mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2026-10-22 07:02:37 +00:00
Linux compatibility changes.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
1 parent
2482a7b742
commit
08d742e336
4 files changed
+10
-3
No files matched your search
@@ -116,7 +116,9 @@ void Board::Memory_ReadingByte_Input(const uint16_t address) {
|
||||
|
||||
void Board::Memory_WrittenByte_Output(const uint16_t address) {
|
||||
if (address == m_configuration.getOutputAddress()) {
|
||||
#ifdef _MSC_VER
|
||||
_putch(DATA());
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -128,6 +130,8 @@ void Board::Cpu_ExecutedInstruction_Poll(const EightBit::MOS6502& cpu) {
|
||||
}
|
||||
|
||||
void Board::pollKeyboard() {
|
||||
#ifdef _MSC_VER
|
||||
if (_kbhit())
|
||||
poke(m_configuration.getInputAddress(), _getch());
|
||||
#endif
|
||||
}
|
||||
+2
-1
@@ -8,5 +8,6 @@
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
// Windows!!
|
||||
#ifdef _MSC_VER
|
||||
#include <conio.h>
|
||||
#endif
|
||||
Reference in new issue
Block a user